/**
 * Pierre Maroc — Couche design v1.0
 * Palette : noir chaud + or marque (#dfa300) | Typo : Playfair Display + Source Sans Pro (déjà chargées par le thème)
 * Chargée après les CSS du thème — surcharge ciblée, ne modifie aucun fichier Themify.
 */

:root {
  --pm-dark: #1c1a17;
  --pm-dark-2: #242424;
  --pm-gold: #dfa300;
  --pm-gold-deep: #b8860b;
  --pm-gold-text: #a16207;
  --pm-cream: #faf7f2;
  --pm-border: #eae4da;
  --pm-text: #2b2925;
  --pm-text-soft: #605a51;
  --pm-shadow: 0 12px 32px -14px rgba(28, 26, 23, 0.3);
  --pm-radius: 3px;
  --pm-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   1. TYPOGRAPHIE DE BASE
   ========================================================================== */

body {
  font-family: 'Source Sans Pro', 'Cabin', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--pm-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.module-fancy-heading h1,
.module-fancy-heading h2,
.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--pm-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

/* Liens dans le contenu — or foncé lisible (WCAG AA sur fond clair) */
.themify_builder .module-text a,
.post-content a:not(.builder_button) {
  color: var(--pm-gold-text);
  text-decoration: underline;
  text-decoration-color: rgba(161, 98, 7, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s var(--pm-ease), text-decoration-color 0.2s var(--pm-ease);
}
.themify_builder .module-text a:hover,
.post-content a:not(.builder_button):hover {
  color: var(--pm-gold-deep);
  text-decoration-color: currentColor;
}

/* ==========================================================================
   2. HEADER / NAVIGATION
   ========================================================================== */

.header-horizontal #headerwrap {
  background-color: rgba(22, 20, 17, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(223, 163, 0, 0.28);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

#site-logo a {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}
#site-logo a span { color: #ffffff; }
#site-logo a:hover { color: var(--pm-gold); }

#main-nav > li > a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 4px;
  transition: color 0.2s var(--pm-ease);
}

/* État actif / hover : soulignement or (remplace le box-shadow inset) */
.header-horizontal #main-nav > li > a:hover,
.header-horizontal #main-nav > .current_page_item > a,
.header-horizontal #main-nav > .current-menu-item > a {
  color: var(--pm-gold);
  box-shadow: inset 0 -2px 0 0 var(--pm-gold);
}

/* Bouton contact du menu (highlight-link) */
.header-horizontal #main-nav .highlight-link > a {
  background-color: var(--pm-gold);
  border-color: var(--pm-gold);
  color: var(--pm-dark) !important;
  font-weight: 700;
  border-radius: var(--pm-radius);
  padding: 10px 22px;
  transition: background-color 0.2s var(--pm-ease), transform 0.2s var(--pm-ease);
}
.header-horizontal #main-nav .highlight-link > a:hover,
.header-horizontal #main-nav .highlight-link.current_page_item > a,
.header-horizontal #main-nav .highlight-link.current-menu-item > a {
  background-color: var(--pm-gold-deep);
  color: #ffffff !important;
  box-shadow: none;
}

/* Sous-menus — fond sombre forcé (le thème impose un fond blanc) */
#headerwrap #main-nav .sub-menu,
#headerwrap #main-nav ul.sub-menu,
#headerwrap #main-nav .sub-menu li {
  background-color: #201d19 !important;
  border-color: rgba(223, 163, 0, 0.2);
}
#headerwrap #main-nav .sub-menu {
  border: 1px solid rgba(223, 163, 0, 0.25);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 6px 0;
}
#headerwrap #main-nav .sub-menu a {
  color: rgba(255, 255, 255, 0.88) !important;
  background: transparent !important;
  font-size: 0.85rem;
  padding: 10px 18px;
}
#headerwrap #main-nav .sub-menu a:hover {
  color: var(--pm-gold) !important;
  background-color: rgba(223, 163, 0, 0.08) !important;
}

/* ==========================================================================
   3. HÉRO (fancy-heading)
   ========================================================================== */

.module-fancy-heading h1,
.module-fancy-heading h2 {
  color: #ffffff;
}

/* Centrage bulletproof des fancy-headings : flex colonne, neutralise tables/floats/positions du thème.
   NB : pour les H2 le sub-head est DANS .maketable ; pour le H1 héro il est en dehors — les deux cas sont couverts. */
.module-fancy-heading h1.fancy-heading,
.module-fancy-heading h2.fancy-heading {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.module-fancy-heading .maketable {
  display: block !important;
  order: -1;
  position: static !important;
  float: none !important;
  width: auto !important;
  border: none !important;
}
.module-fancy-heading .maketable .addBorder,
.module-fancy-heading .fork-icon {
  display: none !important;
}
.module-fancy-heading .sub-head,
.module-fancy-heading em.sub-head {
  display: block !important;
  order: -1;
  position: static !important;
  float: none !important;
  transform: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-indent: 0 !important;
  text-align: center;
  font-family: 'Source Sans Pro', Arial, sans-serif !important;
  font-style: normal !important;
  font-size: clamp(0.8rem, 1.6vw, 1rem) !important;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pm-gold);
}
.module-fancy-heading .heading.main-head {
  display: block;
  position: static !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}
/* Ligne dorée centrée sous le titre */
.module-fancy-heading .bottomBorder {
  display: block !important;
  order: 10;
  position: static !important;
  float: none !important;
  width: 64px !important;
  height: 3px !important;
  background: var(--pm-gold) !important;
  border: none !important;
  margin: 20px auto 0 !important;
}

/* ==========================================================================
   4. BOUTONS
   ========================================================================== */

.module-buttons a.builder_button,
.module-buttons a.yellow,
.module-contact button,
input[type="submit"],
input[type="reset"],
button[type="submit"] {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--pm-gold) !important;
  border: 1px solid var(--pm-gold) !important;
  color: var(--pm-dark) !important;
  border-radius: var(--pm-radius);
  padding: 14px 34px;
  cursor: pointer;
  transition: background-color 0.2s var(--pm-ease), transform 0.2s var(--pm-ease), box-shadow 0.2s var(--pm-ease);
}

.module-buttons a.builder_button:hover,
.module-buttons a.yellow:hover,
.module-contact button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--pm-gold-deep) !important;
  border-color: var(--pm-gold-deep) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(184, 134, 11, 0.55);
}

/* Boutons "outline" sur fond sombre (bandeaux CTA) */
.module-buttons.outline a.yellow {
  background-color: transparent !important;
  color: #ffffff !important;
}
.module-buttons.outline a.yellow:hover {
  background-color: var(--pm-gold) !important;
  color: var(--pm-dark) !important;
}

/* ==========================================================================
   5. CONTENU — tables, images, listes
   ========================================================================== */

.themify_builder .module-text table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  overflow: hidden;
}
.themify_builder .module-text table td,
.themify_builder .module-text table th,
.post-content table td,
.post-content table th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--pm-border);
  text-align: left;
  vertical-align: top;
}
.themify_builder .module-text table tr:nth-child(even) td,
.post-content table tr:nth-child(even) td {
  background-color: var(--pm-cream);
}
.themify_builder .module-text table tr:last-child td { border-bottom: none; }
.themify_builder .module-text table td:first-child { color: var(--pm-dark); white-space: nowrap; }

.themify_builder .module-text img,
.post-content img {
  border-radius: 6px;
  box-shadow: var(--pm-shadow);
  height: auto;
  max-width: 100%;
}

.themify_builder .module-text ul li,
.post-content ul li {
  margin-bottom: 0.5em;
}

/* ==========================================================================
   6. CARTES BLOG (teasers homepage + archives)
   ========================================================================== */

.loops-wrapper .post {
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.25s var(--pm-ease), box-shadow 0.25s var(--pm-ease);
}
.loops-wrapper .post:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow);
}
/* Cartes uniformes : image à hauteur fixe, titre et extrait limités à 2 lignes */
.loops-wrapper .post .post-image { margin: 0; }
.loops-wrapper .post .post-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.loops-wrapper .post .post-content { padding: 20px 22px 24px; }
.loops-wrapper .post .post-title {
  font-size: 1.12rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.loops-wrapper .post .entry-content {
  font-size: 0.92rem;
  color: var(--pm-text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loops-wrapper .post .entry-content p { display: inline; margin: 0; }
.loops-wrapper .post-date,
.single .post-content .post-date,
.loops-wrapper.list-post .post-date {
  background-color: var(--pm-dark) !important;
  color: var(--pm-gold) !important;
  border-radius: var(--pm-radius);
}
.post-meta a { color: var(--pm-gold-text); }
.more-link {
  border-color: var(--pm-gold) !important;
  color: var(--pm-gold-text) !important;
  border-radius: var(--pm-radius);
}
.more-link:hover { background-color: var(--pm-gold) !important; color: var(--pm-dark) !important; }

/* ==========================================================================
   6b. PAGE BLOG (/pierre-naturelle/) — cartes pro au lieu du style polaroid
   ========================================================================== */

/* Barre de filtres par catégorie → pills */
.post-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 36px;
  padding: 0;
  list-style: none;
}
.post-filter .cat-item a {
  display: inline-block;
  font: 600 0.78rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-text-soft);
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.2s var(--pm-ease);
}
.post-filter .cat-item a:hover,
.post-filter .cat-item.current-cat a,
.post-filter .cat-item a.selected {
  background: var(--pm-dark);
  border-color: var(--pm-dark);
  color: var(--pm-gold);
}

/* Cartes articles : neutralise l'overlay polaroid (contenu par-dessus l'image) */
.loops-wrapper.polaroid .post {
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s var(--pm-ease), box-shadow 0.25s var(--pm-ease);
}
.loops-wrapper.polaroid .post:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow);
}
.loops-wrapper.polaroid .post-image {
  margin: 0;
  position: relative;
}
.loops-wrapper.polaroid .post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.loops-wrapper.polaroid .post-content,
.loops-wrapper.polaroid .post-content-inner {
  position: static !important;
  background: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
  transform: none !important;
  width: auto !important;
}
.loops-wrapper.polaroid .post-content {
  padding: 18px 20px 22px !important;
}
/* Date : méta discrète au lieu du bloc en surimpression */
.loops-wrapper.polaroid .post-date-wrap {
  position: static !important;
  background: transparent !important;
  margin: 0 0 8px;
  padding: 0 !important;
}
.loops-wrapper.polaroid time.post-date {
  background: transparent !important;
  color: var(--pm-gold-text) !important;
  font: 600 0.76rem/1 'Source Sans Pro', Arial, sans-serif !important;
  letter-spacing: 0.12em;
  padding: 0 !important;
  display: inline-flex;
  gap: 5px;
}
.loops-wrapper.polaroid time.post-date span {
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}
.loops-wrapper.polaroid .post-title {
  font-size: 1.08rem !important;
  line-height: 1.35 !important;
  margin: 0 0 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loops-wrapper.polaroid .post-title a { color: var(--pm-dark) !important; text-decoration: none; }
.loops-wrapper.polaroid .post-title a:hover { color: var(--pm-gold-text) !important; }
.loops-wrapper.polaroid .post-category {
  margin: 0;
}
.loops-wrapper.polaroid .post-category a {
  display: inline-block;
  font: 600 0.7rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-gold-text);
  background: var(--pm-cream);
  border-radius: 3px;
  padding: 5px 10px;
  margin-right: 6px;
  text-decoration: none;
}

/* ==========================================================================
   6c. PAGE CONTACT — cartes de contact
   ========================================================================== */

.pm-contact { background: #ffffff; padding: 72px 0; }
.pm-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.pm-contact-card {
  display: block;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: 8px;
  padding: 34px 24px 30px;
  text-decoration: none !important;
  transition: transform 0.25s var(--pm-ease), box-shadow 0.25s var(--pm-ease), border-color 0.25s var(--pm-ease);
}
.pm-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow);
  border-color: var(--pm-gold);
}
.pm-contact-card .pm-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pm-cream);
  color: var(--pm-gold-text);
  margin-bottom: 16px;
}
.pm-contact-card .pm-ico svg { width: 24px; height: 24px; }
.pm-contact-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--pm-dark);
  margin: 0 0 6px;
}
.pm-contact-card p { color: var(--pm-text-soft); font-size: 0.95rem; margin: 0; }
.pm-contact-card strong { color: var(--pm-gold-text); font-size: 1.05rem; }
.pm-contact-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--pm-dark);
  border-radius: 8px;
  padding: 34px 38px;
}
.pm-contact-addresses h4 {
  font: 600 0.8rem/1 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pm-gold);
  margin: 0 0 10px;
}
.pm-contact-addresses p { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 860px) {
  .pm-contact-grid { grid-template-columns: 1fr; }
  .pm-contact-addresses { grid-template-columns: 1fr; }
}

/* Contenu SEO de la page contact, déplacé et stylé */
.pm-contact-seo {
  background: var(--pm-cream);
  padding: 64px 0;
}
.pm-contact-seo .pm-container { max-width: 820px; }
.pm-contact-seo h1, .pm-contact-seo h2, .pm-contact-seo h3 {
  font-size: 1.45rem;
  margin: 1.8em 0 0.6em;
}
.pm-contact-seo > .pm-container > :first-child h2,
.pm-contact-seo h2:first-child { margin-top: 0; }
.pm-contact-seo p { color: var(--pm-text-soft); }
.pm-contact-seo ul { padding-left: 1.2em; }
.pm-contact-seo ul li { margin-bottom: 0.55em; color: var(--pm-text-soft); }
.pm-contact-seo ul li strong { color: var(--pm-text); }

/* Masque le bloc brut (post_content avant builder) le temps que le JS le déplace (anti-flash).
   :has() garantit que la règle ne s'applique QUE si la page utilise Themify Builder —
   les pages en HTML pur (catalogue produits) ne sont pas affectées. */
body.page #content .page-content:has(.themify_builder_content) > :not(.themify_builder_content):not(.pm-contact-seo) {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.pm-contact-seo * { visibility: visible; height: auto; overflow: visible; }

/* ==========================================================================
   6e. FICHES PRODUITS (pages HTML pures sous /produits/)
   ========================================================================== */

body.page .page-content .pm-product { padding-top: 24px; }
.pm-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.pm-product-gallery img { width: 100%; height: 240px; object-fit: cover; }
.pm-product-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.pm-price-tag {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pm-gold-text);
  margin: 4px 0 14px;
}
.pm-price-tag small { font-size: 0.9rem; font-family: 'Source Sans Pro', Arial, sans-serif; color: var(--pm-text-soft); font-weight: 400; }

/* ==========================================================================
   6d. PAGE À PROPOS — pavés h5 lisibles + liste "Nous vous proposons" en check-list
   ========================================================================== */

/* Les paragraphes de contenu sont des h5 dans le thème d'origine → les rendre lisibles comme du texte courant */
.page-id-113 .module-text h5 {
  font-family: 'Source Sans Pro', 'Cabin', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--pm-text-soft);
  letter-spacing: 0;
}
.page-id-113 .module-text h3 {
  font-size: 1.35rem;
  margin: 1.6em 0 0.5em;
}
.page-id-113 .module-text h3::after {
  content: "";
  display: block;
  width: 42px; height: 3px;
  background: var(--pm-gold);
  margin-top: 10px;
}

/* Check-list "Nous vous proposons" */
.page-id-113 .module-text ul.list1 {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.page-id-113 .module-text ul.list1 > li {
  position: relative;
  margin: 0 !important;
  padding: 15px 18px 15px 54px;
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
  transition: transform 0.2s var(--pm-ease), box-shadow 0.2s var(--pm-ease);
}
.page-id-113 .module-text ul.list1 > li:hover {
  transform: translateX(4px);
  box-shadow: var(--pm-shadow);
}
.page-id-113 .module-text ul.list1 > li::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background-color: var(--pm-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a16207' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.page-id-113 .module-text ul.list1 > li h5 {
  margin: 0 !important;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  line-height: 1.45 !important;
  color: var(--pm-dark) !important;
  text-align: left !important;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

#footerwrap {
  background-color: var(--pm-dark);
  border-top: 3px solid var(--pm-gold);
  padding-top: 40px;
  padding-bottom: 28px;
}
#footer, #footer p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
#footer a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s var(--pm-ease); }
#footer a:hover { color: var(--pm-gold); }

#footer .social-links .social-link-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s var(--pm-ease), color 0.2s var(--pm-ease), background-color 0.2s var(--pm-ease);
}
#footer .social-links .social-link-item a:hover {
  border-color: var(--pm-gold);
  color: var(--pm-dark);
  background-color: var(--pm-gold);
}

.footer-block .back-top .arrow-up a,
.footer-left-col .back-top .arrow-up a {
  color: var(--pm-gold);
}

/* ==========================================================================
   7b. BLOC "À LIRE AUSSI" (maillage interne dans les articles)
   ========================================================================== */

.pm-related {
  margin: 44px 0 8px;
  padding: 26px 30px;
  background: var(--pm-cream);
  border-left: 3px solid var(--pm-gold);
  border-radius: 0 6px 6px 0;
}
.pm-related h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 14px;
  color: var(--pm-dark);
}
.pm-related ul { list-style: none; margin: 0; padding: 0; }
.pm-related li { margin: 0 0 10px; padding-left: 22px; position: relative; }
.pm-related li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 10px; height: 2px;
  background: var(--pm-gold);
}
.pm-related a {
  color: var(--pm-gold-text);
  text-decoration: none;
  font-weight: 600;
}
.pm-related a:hover { color: var(--pm-gold-deep); text-decoration: underline; }

/* ==========================================================================
   8. ACCESSIBILITÉ & DIVERS
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--pm-gold);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }
h2, h3 { scroll-margin-top: 90px; }

::selection { background: var(--pm-gold); color: var(--pm-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   9. MENU MOBILE MAISON (.pm-mm) — remplace entièrement le panneau du thème
   ========================================================================== */

/* Neutralise le panneau et le glissement du thème (notre JS gère le menu) */
body.mobile_menu_active #mobile-menu.sidemenu { display: none !important; }
body.mobile-menu-visible,
body.sidemenu-right,
body.sidemenu-left,
body.mobile-menu-visible #headerwrap.fixed-header {
  left: 0 !important;
}

/* Panneau plein écran */
.pm-mm {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(18, 15, 12, 0.985);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 76px 30px 40px;
  display: flex;
  flex-direction: column;
}
.pm-mm[hidden] { display: none; }
body.pm-mm-open { overflow: hidden; }

.pm-mm-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(223, 163, 0, 0.12);
  border: 1px solid rgba(223, 163, 0, 0.4);
  border-radius: 50%;
  color: var(--pm-gold);
  cursor: pointer;
}
.pm-mm-close svg { width: 22px; height: 22px; }

.pm-mm-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 26px;
}

.pm-mm-nav ul { list-style: none; margin: 0; padding: 0; }
.pm-mm-nav > ul > li > a,
.pm-mm-nav a {
  display: block;
  padding: 15px 0;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none !important;
  background: transparent !important;
}
.pm-mm-nav a:hover,
.pm-mm-nav .current_page_item > a,
.pm-mm-nav .current-menu-item > a {
  color: var(--pm-gold) !important;
}
.pm-mm-nav .sub-menu {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 18px;
}
.pm-mm-nav .sub-menu a {
  font-size: 0.92rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 11px 0;
}
.pm-mm-nav .highlight-link > a {
  color: var(--pm-gold) !important;
  border-bottom-color: rgba(223, 163, 0, 0.4);
}
.pm-mm-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.pm-mm-actions .pm-btn { flex: 1; justify-content: center; }

/* Le menu maison ne s'active que quand le thème passe en mode mobile */
body:not(.mobile_menu_active) .pm-mm { display: none !important; }

/* ==========================================================================
   9b. ANCIEN PANNEAU THEME (conservé en secours si JS désactivé)
   ========================================================================== */

#mobile-menu.sidemenu,
.mobile_menu_active .sidemenu,
.mobile_menu_active #mobile-menu,
.sidemenu {
  background-color: #16130f !important;
  color: #ffffff !important;
}
#mobile-menu .navbar-wrapper,
#mobile-menu #main-nav-wrap {
  background: transparent !important;
}
#mobile-menu #main-nav > li > a,
#mobile-menu #main-nav a,
.sidemenu #main-nav a {
  color: rgba(255, 255, 255, 0.92) !important;
  display: block;
  padding: 13px 22px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none !important;
}
#mobile-menu #main-nav a:hover,
#mobile-menu #main-nav .current_page_item > a,
#mobile-menu #main-nav .current-menu-item > a {
  color: var(--pm-gold) !important;
  background: rgba(223, 163, 0, 0.08) !important;
}
#mobile-menu #main-nav .sub-menu,
.sidemenu #main-nav .sub-menu {
  background: rgba(255, 255, 255, 0.04) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 0;
}
#mobile-menu #main-nav .sub-menu a { padding-left: 38px; font-size: 0.88rem; }
#mobile-menu #main-nav .highlight-link > a {
  background: var(--pm-gold) !important;
  color: var(--pm-dark) !important;
  margin: 14px 22px;
  padding: 13px 22px;
  border-radius: var(--pm-radius);
  text-align: center;
  border-bottom: none;
}

/* Icône de fermeture du menu mobile — visible sur fond sombre.
   Le thème dessine la croix avec border-top: 1px solid currentColor sur ::before/::after. */
#menu-icon-close,
.sidemenu #menu-icon-close,
.mobile_menu_active #menu-icon-close,
.transparent-header #header #menu-icon-close {
  color: var(--pm-gold) !important;
  font-size: 22px;
  z-index: 10;
}
.mobile_menu_active #menu-icon-close:before,
.mobile_menu_active #menu-icon-close:after,
#menu-icon-close:before,
#menu-icon-close:after {
  border-top-color: var(--pm-gold) !important;
  border-top-width: 2px !important;
}

/* Mobile : cibles tactiles + lisibilité */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .module-buttons a.builder_button,
  .module-buttons a.yellow { display: inline-block; padding: 15px 28px; }
  .themify_builder .module-text table { display: block; overflow-x: auto; }
  /* Héros moins hauts sur mobile */
  #content .themify_builder_content > .module_row:first-child { min-height: 52vh; }
  /* Boutons CTA empilés confortablement */
  .pm-cta-actions { flex-direction: column; align-items: stretch; }
  .pm-cta-actions .pm-btn { justify-content: center; }
  /* Section SEO déplacée : padding réduit */
  .pm-contact-seo { padding: 40px 0; }
}
