/* ==========================================================================
   PNEU EXPRESS 10 — Design system (template 5)
   Dark automotive / racing. Fond #242424, accent orange logo #ff651b.
   Tout est ici : aucune recompilation Tailwind nécessaire.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "PeDisplay";
  src: url("../../fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeBody";
  src: url("../../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* On réassigne les familles héritées du thème générique (titleFont / baseTypo)
   pour ne pas avoir à recompiler la config Tailwind. */
@font-face {
  font-family: "titleFont";
  src: url("../../fonts/RussoOne-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "baseTypo";
  src: url("../../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --pe-bg: #242424;
  --pe-bg-deep: #1b1b1b;
  --pe-bg-black: #141414;
  --pe-surface: #2c2c2c;
  --pe-surface-2: #333333;
  --pe-surface-3: #3b3b3b;

  /* Accent */
  --pe-orange: #ff651b;
  --pe-orange-light: #ff8a45;
  --pe-orange-dark: #e04f0c;
  --pe-orange-soft: rgba(255, 101, 27, 0.12);
  --pe-orange-glow: rgba(255, 101, 27, 0.35);
  --pe-gradient: linear-gradient(100deg, #ff5a0d 0%, #ff8a45 100%);
  --pe-gradient-hover: linear-gradient(100deg, #ff8a45 0%, #ff5a0d 100%);

  /* Texte */
  --pe-white: #ffffff;
  --pe-text: #c9c9c9;
  --pe-text-dim: #9a9a9a;
  --pe-text-muted: #757575;

  /* Lignes */
  --pe-line: rgba(255, 255, 255, 0.09);
  --pe-line-strong: rgba(255, 255, 255, 0.16);

  /* Typo */
  --pe-font-display: "PeDisplay", "Impact", "Haettenschweiler", sans-serif;
  --pe-font-body: "PeBody", "Helvetica Neue", Arial, sans-serif;

  /* Rayons */
  --pe-radius: 6px;
  --pe-radius-lg: 10px;

  /* Ombres */
  --pe-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  --pe-shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, 0.95);
  --pe-shadow-orange: 0 16px 40px -14px var(--pe-orange-glow);

  /* Rythme */
  --pe-gutter: 1.5rem;
  --pe-max: 1400px;
  --pe-max-narrow: 1120px;
  --pe-section-y: clamp(3.5rem, 7vw, 7rem);

  /* Header (barre 76px ; + bandeau d'infos 40px a partir de 1280px) */
  --pe-header-h: 76px;

  /* Transition */
  --pe-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pe-transition: 0.35s var(--pe-ease);

  /* Compat thème générique */
  --color-primary: #ff651b;
  --color-secondary: #454545;
  --color-item: #ffffff;
  --color-item-hover: #ff651b;
}

@media (min-width: 1280px) {
  :root {
    --pe-header-h: 116px;
  }
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  background-color: var(--pe-bg);
}

body,
body.custom-background {
  background-color: var(--pe-bg) !important;
  background-image: none !important;
  color: var(--pe-text);
  font-family: var(--pe-font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#page,
.site-main {
  background-color: var(--pe-bg);
}

::selection {
  background: var(--pe-orange);
  color: #fff;
}

/* Scrollbar */
* {
  scrollbar-color: var(--pe-orange) var(--pe-bg-deep);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--pe-bg-deep);
}
*::-webkit-scrollbar-thumb {
  background: var(--pe-surface-3);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--pe-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--pe-font-display);
  color: var(--pe-white);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--pe-transition);
}

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

/* --------------------------------------------------------------------------
   4. PRIMITIVES DE MISE EN PAGE
   -------------------------------------------------------------------------- */

.pe-section {
  position: relative;
  padding: var(--pe-section-y) 0;
  background-color: var(--pe-bg);
}

.pe-section--deep {
  background-color: var(--pe-bg-deep);
}

.pe-section--flush {
  padding: 0;
}

.pe-wrap {
  width: 100%;
  max-width: var(--pe-max);
  margin: 0 auto;
  padding-inline: var(--pe-gutter);
}

.pe-wrap--narrow {
  max-width: var(--pe-max-narrow);
}

.pe-wrap--wide {
  max-width: 1600px;
}

/* --------------------------------------------------------------------------
   5. EN-TÊTES DE SECTION
   -------------------------------------------------------------------------- */

.pe-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pe-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 800px;
}

/* Surtitre "racing" : barre oblique + label */
.pe-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--pe-font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pe-orange);
  margin-bottom: 1.1rem;
  line-height: 1;
}

.pe-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--pe-gradient);
  transform: skewX(-25deg);
  flex: none;
}

.pe-head--center .pe-eyebrow::after {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--pe-gradient);
  transform: skewX(-25deg);
  flex: none;
}

.pe-title {
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  color: var(--pe-white);
}

.pe-title em,
.pe-title .pe-hl {
  font-style: normal;
  color: var(--pe-orange);
}

.pe-title--sm {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.pe-lead {
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--pe-text-dim);
  line-height: 1.8;
  max-width: 68ch;
}

.pe-head--center .pe-lead {
  margin-inline: auto;
}

/* Séparateur oblique */
.pe-rule {
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 1.5rem;
  background: var(--pe-gradient);
  transform: skewX(-25deg);
}

.pe-head--center .pe-rule {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   6. TEXTE RICHE (WYSIWYG ACF)
   -------------------------------------------------------------------------- */

.pe-rich {
  color: var(--pe-text);
  line-height: 1.85;
}

.pe-rich > *:first-child {
  margin-top: 0;
}
.pe-rich > *:last-child {
  margin-bottom: 0;
}

.pe-rich h1,
.pe-rich h2,
.pe-rich h3,
.pe-rich h4 {
  margin: 2rem 0 1rem;
  color: var(--pe-white);
}
.pe-rich h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.pe-rich h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}
.pe-rich h4 {
  font-size: 1.1rem;
}

.pe-rich strong,
.pe-rich b {
  color: var(--pe-white);
  font-weight: 700;
}

.pe-rich a:not(.pe-btn) {
  color: var(--pe-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.pe-rich a:not(.pe-btn):hover {
  color: var(--pe-orange-light);
}

/* style.css impose `body ul:not(#menu-footer)... { list-style: circle }` :
   un sélecteur porteur d'un ID, d'où le !important pour reprendre la main. */
.pe-rich ul,
.pe-rich ol {
  margin: 1.2rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pe-rich ul li,
.pe-rich ol li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.65rem;
}

.pe-rich ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 4px;
  background: var(--pe-gradient);
  transform: skewX(-25deg);
}

.pe-rich ol {
  counter-reset: pe-ol;
}
.pe-rich ol li {
  counter-increment: pe-ol;
}
.pe-rich ol li::before {
  content: counter(pe-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--pe-font-display);
  font-size: 0.8rem;
  color: var(--pe-orange);
  line-height: 1.9;
}

.pe-rich blockquote {
  margin: 1.6rem 0;
  padding: 1rem 0 1rem 1.6rem;
  border-left: 3px solid var(--pe-orange);
  color: var(--pe-white);
  font-style: italic;
}

.pe-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.pe-rich th,
.pe-rich td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--pe-line);
  text-align: left;
}
.pe-rich th {
  color: var(--pe-white);
  font-family: var(--pe-font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pe-rich img {
  border-radius: var(--pe-radius);
}

/* --------------------------------------------------------------------------
   7. BOUTONS
   -------------------------------------------------------------------------- */

.pe-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--pe-font-display);
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1;
  border: 0;
  border-radius: var(--pe-radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition),
    background-color var(--pe-transition),
    color var(--pe-transition),
    border-color var(--pe-transition);
}

.pe-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Bouton plein orange */
.pe-btn--primary {
  color: #fff;
  background: var(--pe-gradient);
  box-shadow: var(--pe-shadow-orange);
}

.pe-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pe-gradient-hover);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--pe-transition);
}

.pe-btn--primary:hover,
.pe-btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -12px var(--pe-orange-glow);
}

.pe-btn--primary:hover::after {
  opacity: 1;
}

/* Bouton contour */
.pe-btn--ghost {
  color: var(--pe-white);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--pe-line-strong);
}

.pe-btn--ghost:hover,
.pe-btn--ghost:focus-visible {
  color: var(--pe-orange);
  box-shadow: inset 0 0 0 1px var(--pe-orange);
  transform: translateY(-2px);
}

/* Bouton sur surface claire (photo) */
.pe-btn--light {
  color: var(--pe-bg-black);
  background: #fff;
}
.pe-btn--light:hover {
  color: var(--pe-bg-black);
  background: var(--pe-orange);
  color: #fff;
  transform: translateY(-2px);
}

.pe-btn--block {
  width: 100%;
}

.pe-btn--sm {
  padding: 0.7rem 1.2rem;
  font-size: 0.72rem;
}

/* Bouton icône seule (tel / mail / réseaux) */
.pe-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--pe-radius);
  color: var(--pe-white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition: all var(--pe-transition);
}

.pe-iconbtn svg {
  width: 20px;
  height: 20px;
}

.pe-iconbtn:hover,
.pe-iconbtn:focus-visible {
  color: #fff;
  background: var(--pe-gradient);
  box-shadow: var(--pe-shadow-orange);
  transform: translateY(-2px);
}

.pe-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.pe-head--center + .pe-btn-row,
.pe-btn-row--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. CARTES
   -------------------------------------------------------------------------- */

.pe-card {
  position: relative;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  overflow: hidden;
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition);
}

.pe-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px var(--pe-line-strong),
    var(--pe-shadow);
}

/* Liseré orange qui se déploie au survol */
.pe-card--edge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--pe-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--pe-transition);
  z-index: 3;
}

.pe-card--edge:hover::before {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   9. MÉDIA / IMAGES
   -------------------------------------------------------------------------- */

.pe-media {
  position: relative;
  overflow: hidden;
  background: var(--pe-bg-deep);
}

.pe-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--pe-ease);
}

.pe-media--zoom:hover img {
  transform: scale(1.06);
}

/* Voile dégradé bas → haut, pour texte sur photo */
.pe-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.55) 42%,
    rgba(15, 15, 15, 0.12) 100%
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. ICÔNES SVG
   -------------------------------------------------------------------------- */

.pe-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pe-icon--lg {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}

/* Pastille d'icône */
.pe-iconbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: var(--pe-radius);
  color: var(--pe-orange);
  background: var(--pe-orange-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 101, 27, 0.22);
  transition: all var(--pe-transition);
}

.pe-iconbox .pe-icon {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   11. ANIMATIONS (AOS reste utilisé par les templates)
   -------------------------------------------------------------------------- */

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

/* ==========================================================================
   12. HEADER / NAVIGATION
   ========================================================================== */

.pe-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(20, 20, 20, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pe-line);
}

/* --- Bandeau d'infos --- */

.pe-topbar {
  display: none;
  background: var(--pe-bg-black);
  border-bottom: 1px solid var(--pe-line);
}

.pe-topbar__inner {
  max-width: var(--pe-max);
  margin: 0 auto;
  padding: 0 var(--pe-gutter);
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.775rem;
  color: white;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.pe-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pe-topbar__item .pe-icon {
  width: 15px;
  height: 15px;
  color: var(--pe-orange);
}

.pe-topbar__item--hours {
  min-width: 0;
}

.pe-topbar__item--flag {
  margin-left: auto;
  color: var(--pe-white);
  font-weight: 600;
}

@media (min-width: 1280px) {
  .pe-topbar {
    display: block;
  }
}

/* --- Barre principale --- */

.pe-navbar__inner {
  max-width: var(--pe-max);
  margin: 0 auto;
  padding: 0 var(--pe-gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pe-navbar__logo {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}

.pe-navbar__logo img {
  height: 82px;
  width: auto;
  object-fit: contain;
  transition: transform var(--pe-transition);
}

.pe-navbar__logo:hover img {
  transform: scale(1.04);
}

.pe-navbar__wordmark {
  font-family: var(--pe-font-display);
  font-size: 1.25rem;
  color: var(--pe-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* --- Menu desktop --- */

.pe-nav {
  display: none;
}

#menu-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu-main li {
  position: relative;
  display: block;
}

/* On écrase les classes utilitaires injectées par le walker */
#menu-main li > a {
  display: flex !important;
  align-items: center;
  padding: 0.65rem 0.95rem;
  font-family: var(--pe-font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pe-text) !important;
  border-radius: var(--pe-radius);
  white-space: nowrap;
  transition:
    color var(--pe-transition),
    background-color var(--pe-transition);
}

#menu-main > li > a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--pe-gradient);
  transform: scaleX(0) skewX(-25deg);
  transform-origin: left;
  transition: transform var(--pe-transition);
}

#menu-main li:hover > a,
#menu-main li > a:hover,
#menu-main li.current-menu-item > a,
#menu-main li.current-menu-ancestor > a,
#menu-main li.current_page_item > a,
#menu-main li.current_page_ancestor > a {
  color: var(--pe-white) !important;
}

#menu-main > li:hover > a::after,
#menu-main > li.current-menu-item > a::after,
#menu-main > li.current-menu-ancestor > a::after,
#menu-main > li.current_page_item > a::after,
#menu-main > li.current_page_ancestor > a::after {
  transform: scaleX(1) skewX(-25deg);
}

/* Indicateur de sous-menu */
#menu-main li.menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 5px;
  height: 5px;
  margin-left: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.6;
  transition: transform var(--pe-transition);
}

#menu-main li.menu-item-has-children:hover > a::before {
  transform: rotate(225deg) translateY(-2px);
  opacity: 1;
}

/* Sous-menus : on neutralise les utilitaires du walker */
#menu-main .sub-menu {
  position: absolute !important;
  top: 100%;
  left: 0;
  min-width: 240px !important;
  margin: 0;
  padding: 0.5rem !important;
  list-style: none;
  background: rgba(24, 24, 24, 0.98) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius);
  box-shadow: var(--pe-shadow-lg);
  opacity: 0 !important;
  visibility: hidden;
  overflow: visible !important;
  transform: translateY(10px);
  transition:
    opacity var(--pe-transition),
    transform var(--pe-transition),
    visibility var(--pe-transition);
  pointer-events: none;
}

#menu-main li:hover > .sub-menu,
#menu-main li:focus-within > .sub-menu {
  opacity: 1 !important;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#menu-main .sub-menu li {
  display: block;
}

#menu-main .sub-menu li > a {
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem !important;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--pe-text-dim) !important;
  border-radius: 4px;
}

#menu-main .sub-menu li > a::after {
  display: none;
}

#menu-main .sub-menu li:hover > a,
#menu-main .sub-menu li.current-menu-item > a {
  color: var(--pe-white) !important;
  background: var(--pe-orange-soft);
}

/* Sous-menus de niveau 2 */
#menu-main .sub-menu .sub-menu {
  top: -0.5rem;
  left: 100%;
}

@media (min-width: 1100px) {
  .pe-nav {
    display: block;
  }
}

/* --- Actions --- */

.pe-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.pe-navbar__socials {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 1400px) {
  .pe-navbar__socials {
    display: flex;
  }
}

.pe-navbar__contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Bloc téléphone mis en avant */
.pe-navbar__phone {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  border-radius: var(--pe-radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition: all var(--pe-transition);
}

.pe-navbar__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 4px;
  color: #fff;
  background: var(--pe-gradient);
}

.pe-navbar__phone-icon .pe-icon {
  width: 18px;
  height: 18px;
}

.pe-navbar__phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.pe-navbar__phone-label {
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pe-text-muted);
}

.pe-navbar__phone-number {
  font-family: var(--pe-font-display);
  font-size: 0.95rem;
  color: var(--pe-white);
  letter-spacing: 0.01em;
}

.pe-navbar__phone:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 101, 27, 0.5);
  background: var(--pe-orange-soft);
}

@media (min-width: 640px) {
  .pe-navbar__phone {
    display: flex;
  }
}

.pe-navbar__contact .pe-iconbtn {
  display: none;
}

.pe-navbar__cta {
  display: none;
}

@media (min-width: 1100px) {
  .pe-navbar__contact .pe-iconbtn,
  .pe-navbar__cta {
    display: inline-flex;
  }
}

/* --- Burger --- */

.pe-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--pe-radius);
  color: var(--pe-white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  cursor: pointer;
  transition: all var(--pe-transition);
}

.pe-burger .pe-icon {
  width: 22px;
  height: 22px;
}

.pe-burger:hover {
  color: #fff;
  background: var(--pe-gradient);
}

@media (min-width: 1100px) {
  .pe-burger {
    display: none;
  }
}

/* ==========================================================================
   13. MENU MOBILE (drawer)
   ========================================================================== */

.pe-drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: visible;
}

.pe-drawer.offArea {
  visibility: hidden;
}

.pe-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 0.45s var(--pe-ease);
}

.pe-drawer.offArea .pe-drawer__backdrop {
  opacity: 0;
}

.pe-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--pe-bg-deep);
  border-right: 1px solid var(--pe-line);
  box-shadow: var(--pe-shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(0);
  transition: transform 0.45s var(--pe-ease);
}

.pe-drawer.offArea .pe-drawer__panel {
  transform: translateX(-100%);
}

.pe-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--pe-gutter);
  border-bottom: 1px solid var(--pe-line);
}

.pe-drawer__logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.pe-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--pe-radius);
  color: var(--pe-white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  cursor: pointer;
  transition: all var(--pe-transition);
}

.pe-drawer__close .pe-icon {
  width: 20px;
  height: 20px;
}

.pe-drawer__close:hover {
  color: #fff;
  background: var(--pe-gradient);
}

.pe-drawer__body {
  flex: 1 1 auto;
  padding: 1.25rem var(--pe-gutter);
}

#menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu-mobile li {
  display: block;
}

#menu-mobile li > a {
  display: flex !important;
  align-items: center;
  padding: 0.85rem 0.9rem !important;
  margin: 0 !important;
  font-family: var(--pe-font-display) !important;
  font-size: 1rem !important;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left !important;
  color: var(--pe-text) !important;
  border-radius: var(--pe-radius);
  border-left: 2px solid transparent;
  transition: all var(--pe-transition);
}

#menu-mobile li > a:hover,
#menu-mobile li.current-menu-item > a,
#menu-mobile li.current-menu-ancestor > a,
#menu-mobile li.current_page_item > a {
  color: var(--pe-white) !important;
  background: var(--pe-orange-soft) !important;
  border-left-color: var(--pe-orange);
  padding-left: 1.1rem !important;
}

#menu-mobile .sub-menu {
  display: block;
  margin: 0.15rem 0 0.5rem 0.9rem;
  padding: 0 0 0 0.9rem;
  list-style: none;
  border-left: 1px solid var(--pe-line);
}

#menu-mobile .sub-menu li > a {
  font-family: var(--pe-font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pe-text-dim) !important;
  padding: 0.6rem 0.9rem !important;
}

.pe-drawer__foot {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem var(--pe-gutter);
  border-top: 1px solid var(--pe-line);
}

.pe-drawer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* ==========================================================================
   14. RÉSEAUX SOCIAUX (elements/socialmedia.php)
   ========================================================================== */

.pe-navbar__socials a,
.pe-drawer__socials a,
.pe-footer__socials a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  border-radius: var(--pe-radius) !important;
  color: var(--pe-text) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px var(--pe-line) !important;
  transition: all var(--pe-transition);
}

.pe-navbar__socials a svg,
.pe-drawer__socials a svg,
.pe-footer__socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor !important;
  color: inherit !important;
}

.pe-navbar__socials a:hover,
.pe-drawer__socials a:hover,
.pe-footer__socials a:hover {
  color: #fff !important;
  background: var(--pe-gradient) !important;
  box-shadow: var(--pe-shadow-orange) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   15. DÉCALAGE SOUS LE HEADER FIXE
   ========================================================================== */

.site-main {
  padding-top: 0;
}

/* Le premier bloc de chaque page compense la hauteur du header */
.pe-hero {
  padding-top: var(--pe-header-h);
}

.pe-pagetitle {
  padding-top: var(--pe-header-h);
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .pe-pagetitle {
    margin-top: 80px;
  }
}

/* Sécurité : une page qui démarre sans hero ne passe pas sous le header fixe */
.site-main > .pe-section:first-of-type {
  padding-top: calc(var(--pe-header-h) + var(--pe-section-y));
}

/* Ancres : on décale la cible du scroll */
[id]:not(body) {
  scroll-margin-top: calc(var(--pe-header-h) + 20px);
}

/* ==========================================================================
   16. HERO D'ACCUEIL
   ========================================================================== */

.pe-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  height: 100vh;
  max-height: 900px;
  overflow: hidden;
  background: var(--pe-bg-black);
}

.pe-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pe-hero__carousel,
.pe-hero__carousel .flickity-viewport,
.pe-hero__slide {
  height: 100%;
  width: 100%;
}

.pe-hero__slide {
  background-color: var(--pe-bg-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pe-hero__slide--static {
  position: absolute;
  inset: 0;
  animation: pe-kenburns 22s ease-in-out infinite alternate;
}

@keyframes pe-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

/* Voile : sombre à gauche pour la lisibilité, dégradé bas pour la couture */
.pe-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      95deg,
      rgba(15, 15, 15, 0.88) 0%,
      rgba(15, 15, 15, 0.66) 34%,
      rgba(15, 15, 15, 0.18) 68%,
      rgba(15, 15, 15, 0.34) 100%
    ),
    linear-gradient(to top, var(--pe-bg) 0%, rgba(36, 36, 36, 0) 24%);
}

.pe-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.pe-hero__content {
  max-width: 720px;
}

.pe-hero__title {
  font-size: clamp(2.4rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  color: var(--pe-white);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.pe-hero__title em,
.pe-hero__title .pe-hl {
  font-style: normal;
  color: var(--pe-orange);
}

.pe-hero__actions {
  margin-top: 2.25rem;
}

.pe-hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pe-hero__socials a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  border-radius: var(--pe-radius) !important;
  color: var(--pe-text) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 0 1px var(--pe-line) !important;
  transition: all var(--pe-transition);
}

.pe-hero__socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor !important;
}

.pe-hero__socials a:hover {
  color: #fff !important;
  background: var(--pe-gradient) !important;
  transform: translateY(-2px);
}

/* Indice de scroll */
.pe-hero__scrollcue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  color: var(--pe-white);
  opacity: 0.55;
  animation: pe-bob 2.2s var(--pe-ease) infinite;
}

@keyframes pe-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (min-width: 768px) {
  .pe-hero__scrollcue {
    display: flex;
  }
}

/* Pagination Flickity du hero */
.pe-hero .flickity-page-dots {
  bottom: 2rem;
  left: auto;
  right: var(--pe-gutter);
  width: auto;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.pe-hero .flickity-page-dots .dot {
  width: 28px;
  height: 3px;
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: skewX(-25deg);
  transition:
    background var(--pe-transition),
    width var(--pe-transition);
}

.pe-hero .flickity-page-dots .dot.is-selected {
  width: 44px;
  background: var(--pe-orange);
}

@media (max-width: 767px) {
  .pe-hero {
    min-height: 560px;
    height: auto;
    padding-bottom: 3.5rem;
  }
  .pe-hero__inner {
    padding-top: 2rem;
  }
  .pe-hero__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.72) 0%,
        rgba(15, 15, 15, 0.88) 100%
      ),
      linear-gradient(to top, var(--pe-bg) 0%, rgba(36, 36, 36, 0) 22%);
  }
}

/* ==========================================================================
   17. BANNIÈRE DE PAGE
   ========================================================================== */

.pe-pagetitle {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background-color: var(--pe-bg-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.pe-pagetitle__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      95deg,
      rgba(15, 15, 15, 0.92) 0%,
      rgba(15, 15, 15, 0.7) 45%,
      rgba(15, 15, 15, 0.4) 100%
    ),
    linear-gradient(to top, var(--pe-bg) 0%, rgba(36, 36, 36, 0) 40%);
}

.pe-pagetitle__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.pe-pagetitle__content {
  max-width: 780px;
}

.pe-pagetitle__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--pe-white);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.pe-pagetitle__actions {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .pe-pagetitle {
    min-height: 500px;
  }
}

/* ==========================================================================
   18. PICTOS ("Pourquoi nous choisir")
   ========================================================================== */

.pe-pictos__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pe-pictos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pe-pictos__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pe-picto {
  padding: 2.25rem 1.75rem 2rem;
}

.pe-picto__num {
  position: absolute;
  top: 1.1rem;
  right: 1.35rem;
  font-family: var(--pe-font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  transition: color var(--pe-transition);
  pointer-events: none;
}

.pe-picto:hover .pe-picto__num {
  color: var(--pe-orange-soft);
}

.pe-picto__icon {
  margin-bottom: 1.4rem;
}

.pe-picto:hover .pe-iconbox {
  color: #fff;
  background: var(--pe-gradient);
  box-shadow: var(--pe-shadow-orange);
  transform: translateY(-2px);
}

.pe-picto__title {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.pe-picto__text {
  color: var(--pe-text-dim);
  font-size: 0.94rem;
  line-height: 1.75;
}

.pe-picto__text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   19. TYPO (texte éditorial)
   ========================================================================== */

.pe-typo__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .pe-typo__grid {
    grid-template-columns: minmax(280px, 5fr) 7fr;
    gap: 4rem;
  }
}

.pe-typo__aside .pe-title {
  margin-top: 0;
}

.pe-typo__actions {
  margin-top: 2rem;
}

/* ==========================================================================
   20. TEXTE + PHOTO
   ========================================================================== */

.pe-textphoto__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .pe-textphoto__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4.5rem;
  }

  .pe-textphoto__grid--reverse .pe-textphoto__media {
    order: 2;
  }
}

.pe-textphoto__media {
  position: relative;
  isolation: isolate;
}

/* Ombre portée orange nette (sans flou), décalée en diagonale.
   Un box-shadow épouse exactement la photo, coins arrondis compris. */

.pe-textphoto__img {
  border-radius: var(--pe-radius-lg);
  aspect-ratio: 4 / 3;
  box-shadow:
    12px 12px 0 0 var(--pe-orange),
    var(--pe-shadow-lg);
}

.pe-textphoto__grid--reverse .pe-textphoto__img {
  box-shadow:
    -12px 12px 0 0 var(--pe-orange),
    var(--pe-shadow-lg);
}

@media (min-width: 1024px) {
  .pe-textphoto__img {
    box-shadow:
      16px 16px 0 0 var(--pe-orange),
      var(--pe-shadow-lg);
  }
  .pe-textphoto__grid--reverse .pe-textphoto__img {
    box-shadow:
      -16px 16px 0 0 var(--pe-orange),
      var(--pe-shadow-lg);
  }
}

@media (min-width: 1024px) {
  .pe-textphoto__img {
    aspect-ratio: 5 / 6;
    max-height: 660px;
  }
}

.pe-textphoto__text {
  margin-top: 1.75rem;
}

.pe-textphoto__actions {
  margin-top: 2rem;
}

/* ==========================================================================
   21. LISTING PRESTATIONS
   ========================================================================== */

.pe-prestas__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pe-prestas__grid--2,
  .pe-prestas__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pe-prestas__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pe-prestas__grid--solo {
  max-width: 640px;
  margin-inline: auto;
}

.pe-presta {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--pe-radius-lg);
  overflow: hidden;
  background: var(--pe-surface);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition);
}

.pe-presta--link:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 101, 27, 0.4),
    var(--pe-shadow);
}

.pe-presta__media {
  aspect-ratio: 4 / 3;
  flex: none;
}

.pe-presta__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.75rem;
  margin-top: -2.75rem;
  z-index: 2;
}

.pe-presta__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.pe-presta__icon {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
}

.pe-presta__text {
  margin-top: 0.85rem;
  color: var(--pe-text-dim);
  font-size: 0.94rem;
  line-height: 1.75;
}

.pe-presta__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--pe-font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pe-orange);
}

.pe-presta__more .pe-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--pe-transition);
}

.pe-presta--link:hover .pe-presta__more .pe-icon {
  transform: translateX(5px);
}

/* ==========================================================================
   22. GALERIE
   ========================================================================== */

.pe-gallery__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .pe-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pe-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--pe-radius-lg);
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px var(--pe-line);
  background: var(--pe-bg-deep);
}

.pe-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15, 15, 15, 0.55);
  opacity: 0;
  transition: opacity var(--pe-transition);
}

.pe-gallery__zoom .pe-icon {
  width: 34px;
  height: 34px;
}

.pe-gallery__item:hover .pe-gallery__zoom,
.pe-gallery__item:focus-visible .pe-gallery__zoom {
  opacity: 1;
}

/* Lightbox (markup dans footer.php) */
#modal {
  background: rgba(10, 10, 10, 0.92) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 500 !important;
  padding: 2rem;
}

#modal-img {
  max-width: min(1100px, 92vw) !important;
  max-height: 85vh !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: var(--pe-radius-lg);
  box-shadow: var(--pe-shadow-lg);
}

#modal > a {
  top: 1.5rem !important;
  right: 2rem !important;
  color: #fff;
  line-height: 1;
  transition: color var(--pe-transition);
}

#modal > a:hover {
  color: var(--pe-orange);
}

/* ==========================================================================
   23. CTA
   ========================================================================== */

.pe-cta {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background-color: var(--pe-bg-black);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .pe-cta {
    background-attachment: fixed;
  }
}

.pe-cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 15, 0.82) 0%,
    rgba(15, 15, 15, 0.75) 100%
  );
}

.pe-cta__inner {
  position: relative;
  z-index: 2;
}

.pe-cta__panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
  background: rgba(28, 28, 28, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: var(--pe-radius-lg);
  box-shadow:
    inset 0 0 0 1px var(--pe-line-strong),
    var(--pe-shadow-lg);
}

.pe-cta__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
}

.pe-cta__title .pe-hl {
  display: block;
  color: var(--pe-orange);
}

.pe-cta__panel .pe-rule {
  margin-inline: auto;
}

.pe-cta__actions {
  margin-top: 2.25rem;
}

/* ==========================================================================
   24. PARTENAIRES / MARQUES
   ========================================================================== */

.pe-partners__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .pe-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .pe-partners__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pe-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  min-height: 120px;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition: all var(--pe-transition);
}

.pe-partners__item img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.65;
  transition: all var(--pe-transition);
}

.pe-partners__item:hover {
  box-shadow: inset 0 0 0 1px var(--pe-line-strong);
  transform: translateY(-3px);
}

.pe-partners__item:hover img {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   25. CONTACT + FORMULAIRE
   ========================================================================== */

.pe-contact__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 1024px) {
  .pe-contact__grid {
    grid-template-columns: minmax(300px, 4fr) 8fr;
    gap: 3rem;
  }
}

.pe-contact__infos {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
}

.pe-contact__infos .pe-rule {
  margin-bottom: 0.75rem;
}

.pe-contact__list {
  list-style: none;
  margin: 3.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pe-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pe-contact__row .pe-iconbox {
  width: 46px;
  height: 46px;
}

.pe-contact__row .pe-iconbox .pe-icon {
  width: 22px;
  height: 22px;
}

.pe-contact__data {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.pe-contact__label {
  font-family: var(--pe-font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pe-text-muted);
}

.pe-contact__value {
  color: var(--pe-white);
  font-size: 0.97rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pe-contact__value--link:hover {
  color: var(--pe-orange);
}

.pe-contact__value--hours {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--pe-text);
}

.pe-contact__day {
  color: var(--pe-text-dim);
}

.pe-contact__time {
  color: var(--pe-white);
  white-space: nowrap;
}

.pe-contact__img {
  border-radius: var(--pe-radius-lg);
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px var(--pe-line);
}

@media (min-width: 1024px) {
  .pe-contact__img {
    aspect-ratio: 3 / 2;
    height: 100%;
  }
}

/* --- Carte formulaire --- */

.pe-formcard {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
}

.pe-formcard__title {
  text-align: left;
}

.pe-formcard__intro {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  color: var(--pe-text-dim);
}

/* --- Champs (markup généré par FormBuilder.php) --- */

#contactForm {
  display: block;
}

#contactForm > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem !important;
}

#contactForm fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#contactForm fieldset.textarea {
  flex-basis: 100%;
  width: 100%;
}

#contactForm label {
  font-family: var(--pe-font-display) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pe-text-muted) !important;
}

#contactForm .form-field,
#contactForm input[type="text"],
#contactForm input[type="number"],
#contactForm input[type="date"],
#contactForm textarea,
#contactForm select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--pe-font-body);
  font-size: 0.95rem;
  color: var(--pe-white);
  background: var(--pe-bg-deep);
  border: 1px solid var(--pe-line);
  border-radius: var(--pe-radius);
  outline: none;
  transition:
    border-color var(--pe-transition),
    box-shadow var(--pe-transition);
  -webkit-appearance: none;
  appearance: none;
}

#contactForm textarea {
  min-height: 170px;
  resize: vertical;
}

#contactForm select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--pe-text-dim) 50%),
    linear-gradient(135deg, var(--pe-text-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 15px) center;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

#contactForm .form-field::placeholder {
  color: var(--pe-text-muted);
}

#contactForm .form-field:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  border-color: var(--pe-orange);
  box-shadow: 0 0 0 3px var(--pe-orange-soft);
}

#contactForm .form-field.error,
#contactForm .form-field[data-error="true"] {
  border-color: #ef4444;
}

#contactForm .submitButton,
.submitButton {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem !important;
  font-family: var(--pe-font-display) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--pe-gradient) !important;
  border: 0 !important;
  border-radius: var(--pe-radius) !important;
  box-shadow: var(--pe-shadow-orange);
  cursor: pointer;
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition);
}

.submitButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -12px var(--pe-orange-glow);
}

/* Toasters — style.css pilote déjà l'entrée/sortie via .hide (left:100%) et
   .show (right:3rem). On ne touche donc NI à left/right NI à transform,
   sinon la toast masquée réapparaît, tronquée, sur le bord droit. */
.toaster,
.toasterSuccess {
  z-index: 450;
  max-width: calc(100vw - 2rem);
}

.toaster.hide,
.toasterSuccess.hide {
  visibility: hidden;
  pointer-events: none;
}

.toaster.show,
.toasterSuccess.show {
  visibility: visible;
}

@media (max-width: 640px) {
  .toaster.show,
  .toasterSuccess.show {
    right: 1rem !important;
    left: 1rem !important;
  }
}

.toaster > div,
.toasterSuccess > div {
  min-width: 0 !important;
  width: min(420px, calc(100vw - 2rem));
  padding: 1.25rem 1.5rem !important;
  border-radius: var(--pe-radius-lg) !important;
  box-shadow: var(--pe-shadow-lg) !important;
}

.toaster > div {
  background: #2a1616 !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #ffb4b4 !important;
}

.toasterSuccess > div {
  background: #16281c !important;
  border: 1px solid rgba(34, 197, 94, 0.45) !important;
  color: #a7f3c4 !important;
}

.toaster .toastTitle,
.toasterSuccess .toastTitle {
  padding: 0 !important;
  font-family: var(--pe-font-display) !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toaster .errorListing,
.toasterSuccess > div > div:not(.toastTitle) {
  padding: 0.75rem 0 0 !important;
  font-size: 0.9rem;
}

/* ==========================================================================
   26. CARTE / ZONE
   ========================================================================== */

.pe-map__panel {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--pe-radius-lg);
  background: var(--pe-surface);
  box-shadow: inset 0 0 0 1px var(--pe-line);
}

@media (min-width: 1024px) {
  .pe-map__panel {
    grid-template-columns: minmax(320px, 5fr) 7fr;
  }
}

.pe-map__intro {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pe-map__text {
  margin-top: 1.5rem;
}

.pe-map__actions {
  margin-top: 2rem;
}

.pe-map__canvas {
  min-height: 340px;
  height: 100%;
  background: var(--pe-bg-deep);
}

@media (min-width: 1024px) {
  .pe-map__canvas {
    min-height: 520px;
  }
}

/* Leaflet en thème sombre */
.pe-map__canvas .leaflet-tile-pane {
  filter: grayscale(0.9) invert(0.92) contrast(0.86) brightness(0.95)
    hue-rotate(180deg);
}

.pe-map__canvas .leaflet-control-zoom a {
  background: var(--pe-surface) !important;
  color: var(--pe-white) !important;
  border-color: var(--pe-line) !important;
}

.pe-map__canvas .leaflet-control-zoom a:hover {
  background: var(--pe-orange) !important;
}

.pe-map__canvas .leaflet-popup-content-wrapper,
.pe-map__canvas .leaflet-popup-tip {
  background: var(--pe-surface);
  color: var(--pe-white);
  box-shadow: var(--pe-shadow);
}

.pe-map__canvas .leaflet-control-attribution {
  background: rgba(20, 20, 20, 0.7) !important;
  color: var(--pe-text-muted) !important;
}

.pe-map__canvas .leaflet-control-attribution a {
  color: var(--pe-text-dim) !important;
}

/* ==========================================================================
   27. ÉQUIPE
   ========================================================================== */

.pe-team__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pe-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pe-team__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pe-team__grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pe-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem 2rem;
}

.pe-member__photo {
  width: 148px;
  height: 148px;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pe-bg-deep);
  box-shadow:
    0 0 0 1px var(--pe-line),
    0 0 0 6px rgba(255, 101, 27, 0.1);
  transition: box-shadow var(--pe-transition);
}

.pe-member:hover .pe-member__photo {
  box-shadow:
    0 0 0 1px var(--pe-orange),
    0 0 0 6px var(--pe-orange-soft);
}

.pe-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pe-member__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pe-text-muted);
}

.pe-member__photo--empty .pe-icon {
  width: 48px;
  height: 48px;
}

.pe-member__name {
  font-size: 1.1rem;
}

.pe-member__role {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pe-orange);
}

/* ==========================================================================
   28. BLOG
   ========================================================================== */

.pe-blog__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .pe-blog__layout--sidebar {
    grid-template-columns: 280px 1fr;
  }
}

.pe-blog__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pe-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pe-blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pe-post {
  display: flex;
  flex-direction: column;
  border-radius: var(--pe-radius-lg);
  overflow: hidden;
  background: var(--pe-surface);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition);
}

.pe-post:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 101, 27, 0.4),
    var(--pe-shadow);
}

.pe-post__media {
  aspect-ratio: 16 / 10;
  flex: none;
}

.pe-post__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.pe-post__date {
  font-family: var(--pe-font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pe-text-muted);
}

.pe-post__title {
  margin-top: 0.65rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.pe-post__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--pe-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pe-orange);
}

.pe-post__more .pe-icon {
  width: 15px;
  height: 15px;
  transition: transform var(--pe-transition);
}

.pe-post:hover .pe-post__more .pe-icon {
  transform: translateX(5px);
}

.pe-blog__empty {
  color: var(--pe-text-dim);
}

/* Pagination */
.pe-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}

.pe-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  font-family: var(--pe-font-display);
  font-size: 0.9rem;
  color: var(--pe-text);
  background: var(--pe-surface);
  border-radius: var(--pe-radius);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition: all var(--pe-transition);
}

.pe-pagination .page-numbers:hover {
  color: var(--pe-white);
  box-shadow: inset 0 0 0 1px var(--pe-orange);
}

.pe-pagination .page-numbers.current {
  color: #fff;
  background: var(--pe-gradient);
  box-shadow: var(--pe-shadow-orange);
}

/* ==========================================================================
   29. TARIFS
   ========================================================================== */

.pe-prices__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 720px) {
  .pe-prices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .pe-prices__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pe-pricecard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.85rem 1.6rem 1.6rem;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition);
}

.pe-pricecard:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px var(--pe-line-strong),
    var(--pe-shadow);
}

/* Carte mise en avant */
.pe-pricecard--featured {
  background: linear-gradient(
    180deg,
    rgba(255, 101, 27, 0.09) 0%,
    var(--pe-surface) 55%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 101, 27, 0.45);
}

.pe-pricecard--featured:hover {
  box-shadow:
    inset 0 0 0 1px var(--pe-orange),
    var(--pe-shadow-orange);
}

.pe-pricecard__badge {
  position: absolute;
  top: -11px;
  left: 1.6rem;
  padding: 0.35rem 0.8rem;
  font-family: var(--pe-font-display);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pe-gradient);
  border-radius: 3px;
  box-shadow: var(--pe-shadow-orange);
}

.pe-pricecard__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--pe-line);
}

.pe-pricecard__icon {
  width: 50px;
  height: 50px;
}

.pe-pricecard__icon .pe-icon {
  width: 25px;
  height: 25px;
}

.pe-pricecard__heading {
  min-width: 0;
}

.pe-pricecard__title {
  font-size: 1.05rem;
  line-height: 1.25;
}

.pe-pricecard__note {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--pe-text-muted);
}

.pe-pricecard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* --- Ligne de tarif : intitulé ... prix --- */

.pe-priceline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.pe-priceline:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pe-priceline__label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.pe-priceline__name {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pe-white);
}

.pe-priceline__detail {
  font-size: 0.775rem;
  line-height: 1.4;
  color: var(--pe-text-muted);
}

/* Ligne de pointillés qui relie l'intitulé au prix */
.pe-priceline__dots {
  flex: 1 1 auto;
  min-width: 1rem;
  height: 1px;
  transform: translateY(-3px);
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.22) 0 3px,
    transparent 3px 7px
  );
  background-size: 7px 1px;
  background-repeat: repeat-x;
}

.pe-priceline__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex: none;
  text-align: right;
  white-space: nowrap;
}

.pe-priceline__prefix {
  font-size: 0.7rem;
  color: var(--pe-text-muted);
  text-transform: lowercase;
}

.pe-priceline__amount {
  font-family: var(--pe-font-display);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--pe-orange);
}

.pe-priceline__amount--quote {
  font-size: 0.85rem;
  color: var(--pe-text-dim);
}

.pe-priceline__unit {
  font-size: 0.72rem;
  color: var(--pe-text-muted);
}

@media (max-width: 400px) {
  .pe-priceline {
    flex-wrap: wrap;
  }
  .pe-priceline__dots {
    display: none;
  }
  .pe-priceline__price {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.3rem;
  }
}

.pe-prices__footnote {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.87rem;
  color: var(--pe-text-muted);
  background: var(--pe-bg-deep);
  border-left: 3px solid var(--pe-orange);
  border-radius: var(--pe-radius);
}

/* ==========================================================================
   30. FOOTER
   ========================================================================== */

.pe-footer {
  position: relative;
  background: var(--pe-bg-deep);
  border-top: 1px solid var(--pe-line);
}

.pe-footer__main {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pe-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pe-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pe-footer__grid {
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
    gap: 3rem;
  }
}

.pe-footer__logo {
  display: inline-block;
}

.pe-footer__logo img {
  height: 62px;
  width: auto;
  object-fit: contain;
}

.pe-footer__wordmark {
  font-family: var(--pe-font-display);
  font-size: 1.35rem;
  color: var(--pe-white);
  text-transform: uppercase;
}

.pe-footer__baseline {
  margin-top: 1.25rem;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--pe-text-dim);
}

.pe-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pe-footer__title {
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--pe-white);
}

.pe-footer__title::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--pe-gradient);
  transform: skewX(-25deg);
}

/* Menu du footer */
#footerMenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footerMenu li {
  display: block;
}

#footerMenu li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.9rem !important;
  color: var(--pe-text-dim);
  transition:
    color var(--pe-transition),
    transform var(--pe-transition);
}

#footerMenu li > a::before {
  content: "";
  width: 10px;
  height: 2px;
  flex: none;
  background: var(--pe-orange);
  transform: skewX(-25deg);
  opacity: 0;
  transition: opacity var(--pe-transition);
}

#footerMenu li > a:hover,
#footerMenu li.current-menu-item > a,
#footerMenu li.current-menu-ancestor > a {
  color: var(--pe-white);
  transform: translateX(3px);
}

#footerMenu li > a:hover::before,
#footerMenu li.current-menu-item > a::before {
  opacity: 1;
}

/* Coordonnées */
.pe-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pe-footer__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--pe-text-dim);
}

.pe-footer__list .pe-icon {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--pe-orange);
}

.pe-footer__list a:hover {
  color: var(--pe-orange);
}

.pe-footer__cta {
  margin-top: 1.75rem;
}

/* Horaires */
.pe-footer__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pe-footer__hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--pe-line);
}

.pe-footer__hours li:last-child {
  border-bottom: 0;
}

.pe-footer__day {
  color: var(--pe-text-dim);
}

.pe-footer__time {
  color: var(--pe-white);
  white-space: nowrap;
}

/* Bandeau légal (contient le logo ReadyUp) */
.pe-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem var(--pe-gutter);
  font-size: 0.8rem;
  color: var(--pe-text-muted);
  text-align: center;
  background: var(--pe-bg-black);
  border-top: 1px solid var(--pe-line);
}

.pe-footer__legal a {
  display: inline-flex;
  align-items: center;
  color: var(--pe-text-dim);
}

.pe-footer__legal a:hover {
  color: var(--pe-orange);
}

.pe-footer__legal svg {
  height: 20px;
  width: auto;
}

/* ==========================================================================
   31. DIVERS / COMPATIBILITÉ
   ========================================================================== */

/* Espaceur inter-blocs : neutralisé, le rythme vertical est porté par les
   sections elles-mêmes (--pe-section-y). Évite de dépendre du réglage admin. */
.spacer {
  display: none !important;
}

/* Sidebar (blog) */
.pe-blog__sidebar .widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
}

.pe-blog__sidebar .widget-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.pe-blog__sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pe-blog__sidebar li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--pe-line);
}

.pe-blog__sidebar li:last-child {
  border-bottom: 0;
}

.pe-blog__sidebar a:hover {
  color: var(--pe-orange);
}

/* Accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pe-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link:focus {
  position: fixed !important;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  color: #fff;
  background: var(--pe-orange);
  border-radius: var(--pe-radius);
}

/* Flickity : on neutralise le fond blanc par défaut */
.flickity-viewport,
.flickity-slider {
  background: transparent;
}

.flickity-button {
  background: rgba(28, 28, 28, 0.85) !important;
  color: var(--pe-white) !important;
  border: 1px solid var(--pe-line) !important;
  transition: all var(--pe-transition);
}

.flickity-button:hover {
  background: var(--pe-orange) !important;
  border-color: var(--pe-orange) !important;
}

.flickity-button:disabled {
  opacity: 0.25;
}

/* AOS : évite le saut de mise en page avant initialisation */
[data-aos] {
  pointer-events: auto;
}

/* ==========================================================================
   32. MENTIONS LÉGALES
   ========================================================================== */

/* Bannière sans photo : dégradé + trame oblique */
.pe-pagetitle--plain {
  min-height: 340px;
  background-color: var(--pe-bg-deep);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 2px,
    transparent 2px,
    transparent 16px
  );
}

.pe-pagetitle--plain .pe-pagetitle__scrim {
  background:
    radial-gradient(
      120% 90% at 12% 100%,
      rgba(255, 101, 27, 0.14) 0%,
      rgba(255, 101, 27, 0) 60%
    ),
    linear-gradient(to top, var(--pe-bg) 0%, rgba(36, 36, 36, 0) 55%);
}

@media (min-width: 1024px) {
  .pe-pagetitle--plain {
    min-height: 380px;
  }
}

.pe-legal__block {
  margin-bottom: 2.75rem;
}

.pe-legal__title {
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--pe-white);
}

.pe-legal__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.8rem;
  background: var(--pe-gradient);
  transform: skewX(-25deg);
}

.pe-legal__cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .pe-legal__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pe-legal__card {
  padding: 2rem 1.75rem;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
}

.pe-legal__cardtitle {
  margin: 1.25rem 0 1.5rem;
  font-size: 1.05rem;
}

.pe-legal__data {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pe-legal__data li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--pe-line);
}

.pe-legal__data li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pe-legal__data span {
  font-family: var(--pe-font-display);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pe-text-muted);
}

.pe-legal__data strong {
  font-weight: 500;
  color: var(--pe-white);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.pe-legal__data a:hover {
  color: var(--pe-orange);
}

/* ==========================================================================
   33. NEUTRALISATION DU THÈME GÉNÉRIQUE
   Le squelette impose des styles clairs (style.css) qu'il faut désamorcer
   là où nos blocs réutilisent ses classes historiques.
   ========================================================================== */

/* Anciens conteneurs du squelette, plus utilisés par nos blocs */
.pe-hero .grille,
.pe-pagetitle .grille {
  position: static;
  transform: none;
  background: transparent;
  width: auto;
  min-height: 0;
}

/* Le thème générique force du blanc sur plusieurs conteneurs */
.pe-section .bg-white,
.pe-footer .bg-white {
  background-color: transparent !important;
}

/* Titres hérités : on repasse sur la typo du design system */
.site-main .font-display {
  font-family: var(--pe-font-display);
}

/* Séparateurs du thème générique : remplacés par .pe-rule */
.separatorTitle {
  display: none !important;
}

/* ==========================================================================
   34. ARTICLE
   ========================================================================== */

.pe-article__content > *:first-child {
  margin-top: 0;
}

.pe-article__content h2,
.pe-article__content h3 {
  margin-top: 2.5rem;
}

.pe-article__nav {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--pe-line);
}

@media (min-width: 640px) {
  .pe-article__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pe-article__nav a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: var(--pe-surface);
  border-radius: var(--pe-radius-lg);
  box-shadow: inset 0 0 0 1px var(--pe-line);
  transition: all var(--pe-transition);
}

.pe-article__nav a:hover {
  box-shadow: inset 0 0 0 1px var(--pe-orange);
  transform: translateY(-3px);
}

.pe-article__nav a:last-child:nth-child(2) {
  text-align: right;
}

.pe-article__navlabel {
  font-family: var(--pe-font-display);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pe-orange);
}

.pe-article__navtitle {
  font-size: 0.95rem;
  color: var(--pe-white);
  line-height: 1.4;
}

/* ==========================================================================
   35. PAGE 404
   ========================================================================== */

.pe-404 {
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding: calc(var(--pe-header-h) + 3rem) 0 4rem;
  background-color: var(--pe-bg);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 16px
  );
}

.pe-404__inner {
  text-align: center;
}

.pe-404__code {
  display: block;
  font-family: var(--pe-font-display);
  font-size: clamp(5.5rem, 20vw, 12rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: var(--pe-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.pe-404__title {
  margin-top: 1.25rem;
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
}

.pe-404__text {
  max-width: 54ch;
  margin: 1.25rem auto 0;
  color: var(--pe-text-dim);
}

.pe-404__actions {
  margin-top: 2.25rem;
}

/* ==========================================================================
   36. CORRECTIFS DE RECETTE
   ========================================================================== */

/* --- Hero : hauteur des visuels -----------------------------------------
   Flickity calcule la hauteur du viewport d'après ses cellules et l'écrit en
   style inline. Nos cellules étant en height:100%, la mesure retournait 0 et
   aucune photo n'apparaissait. On force la chaîne de hauteurs. */
.pe-hero .flickity-viewport {
  height: 100% !important;
}

.pe-hero .flickity-slider {
  height: 100%;
}

.pe-hero__carousel {
  min-height: 100%;
}

/* --- Carte : empilement --------------------------------------------------
   Leaflet monte ses panneaux jusqu'à z-index 1000 et repassait devant le
   header (z-index 300). `isolation` confine ces valeurs au conteneur. */
.pe-map__canvas {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.pe-map__panel {
  position: relative;
  z-index: 0;
}

/* --- Carte : infobulle des marqueurs -------------------------------------
   Le contenu injecté par customizer.js contient un <h3> qui héritait du blanc
   du design system, sur le fond blanc par défaut de Leaflet : illisible. */
.leaflet-tooltip {
  padding: 0 !important;
  color: var(--pe-text) !important;
  background: var(--pe-surface) !important;
  border: 1px solid var(--pe-line-strong) !important;
  border-radius: var(--pe-radius) !important;
  box-shadow: var(--pe-shadow-lg) !important;
  font-family: var(--pe-font-body);
  white-space: normal;
}

.leaflet-tooltip section {
  width: auto !important;
  min-width: 15rem !important;
  max-width: 26rem !important;
  padding: 0.9rem 1.1rem !important;
}

@media (max-width: 480px) {
  .leaflet-tooltip section {
    min-width: 0 !important;
    max-width: 15rem !important;
  }
}

.leaflet-tooltip h3 {
  display: block !important;
  margin-bottom: 0.35rem;
  font-family: var(--pe-font-display);
  font-size: 0.95rem !important;
  line-height: 1.25;
  color: var(--pe-white) !important;
}

.leaflet-tooltip div {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--pe-text-dim);
}

/* Flèche de l'infobulle, dans les quatre directions */
.leaflet-tooltip-left::before {
  border-left-color: var(--pe-line-strong) !important;
}
.leaflet-tooltip-right::before {
  border-right-color: var(--pe-line-strong) !important;
}
.leaflet-tooltip-top::before {
  border-top-color: var(--pe-line-strong) !important;
}
.leaflet-tooltip-bottom::before {
  border-bottom-color: var(--pe-line-strong) !important;
}

/* ==========================================================================
   37. AVIS GOOGLE (plugin Stellario Reviews)
   L'habillage générique inline de reviews.php et le plugin exposent leurs
   couleurs en variables (--st-* / --stellario-*) : on les rebranche sur le
   design system. Le préfixe .pe-reviews donne la priorité sans !important
   et laisse le bloc générique réutilisable intact.
   ========================================================================== */

.pe-reviews .stellario-carousel-wrapper,
.pe-reviews .stellario-carousel,
.pe-reviews .stellario-reviews {
  /* Habillage générique (reviews.php) */
  --st-gold: var(--pe-orange);
  --st-star-empty: var(--pe-surface-3);
  --st-card: var(--pe-surface);
  --st-border: var(--pe-line);
  --st-text: var(--pe-white);
  --st-muted: var(--pe-text-muted);
  --st-comment: var(--pe-text);
  --st-radius: var(--pe-radius-lg);
  --st-shadow: none;
  --st-shadow-hover: var(--pe-shadow);

  /* Plugin (réponses du garage, traduction, focus…) */
  --stellario-color-primary: var(--pe-orange);
  --stellario-color-accent: var(--pe-orange);
  --stellario-color-bg: var(--pe-surface);
  --stellario-color-bg-hover: var(--pe-surface-2);
  --stellario-color-text: var(--pe-white);
  --stellario-color-text-muted: var(--pe-text-dim);
  --stellario-color-text-dim: var(--pe-text-muted);
  --stellario-color-border: var(--pe-line);
  --stellario-color-star-empty: var(--pe-surface-3);
  --stellario-color-reply-bg: var(--pe-orange-soft);
  --stellario-color-reply-text: var(--pe-text);
  --stellario-font: var(--pe-font-body);
}

/* --- Note globale --- */
.pe-reviews .stellario-carousel-wrapper .stellario-badge {
  background: var(--pe-surface);
  border-color: var(--pe-line);
}

.pe-reviews .stellario-carousel-wrapper .stellario-badge__note {
  font-family: var(--pe-font-display);
  font-weight: 400;
  font-size: 3.25rem;
  color: var(--pe-white);
}

.pe-reviews .stellario-carousel-wrapper .stellario-badge__count {
  color: var(--pe-text-dim);
}

.pe-reviews .stellario-carousel-wrapper .stellario-badge__source {
  color: var(--pe-text-dim);
  transition: color var(--pe-transition);
}

.pe-reviews .stellario-carousel-wrapper .stellario-badge__source:hover {
  color: var(--pe-orange);
  text-decoration: none;
}

/* --- Cartes --- */
.pe-reviews .stellario-carousel-wrapper .stellario-review {
  transition:
    transform var(--pe-transition),
    box-shadow var(--pe-transition),
    border-color var(--pe-transition);
}

.pe-reviews .stellario-carousel-wrapper .stellario-review:hover {
  border-color: rgba(255, 101, 27, 0.4);
}

.pe-reviews .stellario-carousel-wrapper .stellario-review__avatar {
  background: var(--pe-surface-3);
}

.pe-reviews .stellario-carousel-wrapper .stellario-review__author {
  font-weight: 600;
}

/* --- Flèches : même traitement que les boutons icône du site --- */
.pe-reviews .stellario-carousel-wrapper .stellario-carousel__arrow {
  border-radius: var(--pe-radius);
  border-color: var(--pe-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pe-white);
  box-shadow: none;
}

.pe-reviews .stellario-carousel-wrapper .stellario-carousel__arrow:hover,
.pe-reviews
  .stellario-carousel-wrapper
  .stellario-carousel__arrow:focus-visible {
  color: #fff;
  background: var(--pe-gradient);
  border-color: var(--pe-orange);
  box-shadow: var(--pe-shadow-orange);
}

.pe-reviews .stellario-carousel-wrapper .stellario-carousel__arrow:active {
  background: var(--pe-orange-dark);
}

/* Le plugin masque les flèches sous 780px : on rend la gouttière
   qui leur était réservée à la largeur des cartes. */
@media (max-width: 780px) {
  .pe-reviews .stellario-carousel-wrapper .stellario-carousel {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* --- Bouton « Laisser votre avis » --- */
.pe-reviews__actions {
  margin-top: 2.5rem;
}
