/* Variante indépendante du 12 novembre : navigation et palette Prestige Auto. */
:root {
  --surface: #292929;
  --surface-raised: #383838;
  --line: rgba(255, 255, 255, .18);
}

/* Le fond de l'en-tête est activé par le début des rubriques, après les photos. */
.header {
  height: 104px;
  padding-inline: 3vw;
  gap: 22px;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition: background .25s, border-color .25s;
}
.header.scrolled {
  height: 90px;
  background: #292929f5;
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}
.header.menu-open { background: #292929; }
.header-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header .brand-logo { width: clamp(172px, 15vw, 244px); }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 9px;
  color: var(--accent);
  border: 1px solid #ffffff42;
  background: #2929294d;
  transition: background .2s, border-color .2s;
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 0 auto;
  padding: 5px;
  border: 1px solid #ffffff35;
  background: #29292999;
  font-size: 13px;
  font-weight: 700;
}
.desktop-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--paper);
  transition: background .2s, color .2s;
}
.desktop-nav a::after { display: none; }
.desktop-nav a:hover, .desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"], .desktop-nav a[aria-current="location"] {
  color: var(--ink);
  background: var(--accent);
}
.header-actions { gap: 20px; flex-shrink: 0; }
.header .call-button { font-size: 12px; }
.header .button-small { gap: 16px; }
.header .mobile-menu {
  left: 3vw;
  right: auto;
  width: min(370px, 94vw);
  max-height: calc(100svh - 125px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 26px 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  background: #292929;
  box-shadow: 0 22px 45px #0005;
}
.mobile-menu a { min-height: 48px; padding-block: 12px; font-size: 15px; }
.mobile-menu a:hover, .mobile-menu a:focus-visible,
.mobile-menu a[aria-current="page"], .mobile-menu a[aria-current="location"] {
  color: var(--accent);
}

/* Un repère commun aux photos et aux rubriques. */
.page-guide {
  position: fixed;
  z-index: 25;
  right: 3vw;
  bottom: 24px;
  display: flex;
  align-items: stretch;
  color: var(--paper);
  background: #292929f5;
  border: 1px solid #ffffff35;
  box-shadow: 0 8px 24px #0003;
}
.next-page {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 55px;
  padding: 14px 20px;
  background: var(--accent);
  color: #292929;
}
.guide-label { font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.guide-arrow { font-size: 25px; line-height: 1; animation: guide-down 2.8s ease-in-out infinite; }
.next-page:hover { background: #e4e300; }
.next-page:hover > span:last-child { transform: none; }
.page-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 94px;
  padding: 12px 16px;
  color: #bdbdbd;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.page-count b { font-weight: 700; color: var(--paper); font-size: 18px; }
.page-guide.at-end .guide-arrow { animation: none; }
@keyframes guide-down { 0%, 70%, 100% { translate: 0 0; } 35% { translate: 0 4px; } }
footer { padding-bottom: 115px; }

/* Les photos et le jaune du logo restent les points d'accent. */
.tariffs, .expertise, .method, .professionals, .contact {
  background: var(--surface);
  color: var(--paper);
}
.tariffs, .expertise, .method, .professionals { border-bottom: 1px solid var(--line); }
.precision-stage { background: #333333; }
.tariffs h2 span, .expertise h2 span, .method h2 span, .professionals h2 span {
  color: var(--accent);
}
.tariffs .section-top, .expertise .section-top, .method .section-top {
  border-color: var(--line);
}
.rate, .rate-diagnostic { border-top-color: var(--accent); }
.rate-price { color: var(--accent); }
.rate-price > small { color: var(--paper); }
.rate-category, .rate-net, .tariffs-bottom > p, .service-body p { color: #c6c6c6; }
.tariffs-bottom, .service-list details, .service-list details:last-child { border-color: var(--line); }
.service-number, .service-plus { color: var(--accent); }
.service-list summary:hover h3 { color: var(--accent); }
.professionals .button {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.professionals .button:hover { background: #e4e300; }
.pro-foot { color: #d1d1d1; border-color: var(--line); }
.v6-contact-panel { background: var(--surface-raised); color: var(--paper); }
.v6-contact-panel > .eyebrow { color: var(--accent); }
.v6-contact-panel .maps-link { display: flex; width: fit-content; color: var(--accent); }
.v6-contact-panel .opening-hours { margin-top: 25px; color: #d1d1d1; }
.v6-contact-panel address {
  margin-top: 26px;
  font-style: normal;
  font-size: 16px;
}
.v6-contact-panel address + .maps-link { margin-top: 8px; }

@media (min-width: 981px) {
  .section-top, .precision-copy > .eyebrow, .professionals > .eyebrow { display: none; }
  .tariffs-heading, .expertise-heading, .method-heading { margin-top: 0; }
  .pro-content { margin-top: 0; }
  .precision-copy h2 { margin-top: 0; }
  .section-pad { padding-top: 112px; padding-bottom: 112px; }
  /* Give each chapter room to read without capturing scroll gestures. */
  .section-pad, .precision-stage { min-height: 100svh; }
}
@media (max-width: 1430px) {
  .header .call-button { display: none; }
  .header { gap: 16px; }
  .header-brand { gap: 12px; }
  .desktop-nav a { padding-inline: 11px; }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .header { padding-inline: 24px; gap: 12px; }
  .header .brand-logo { width: 172px; }
  .desktop-nav { font-size: 12px; }
  .desktop-nav a { padding-inline: 9px; }
  .header .button-small { font-size: 12px; padding-inline: 12px; gap: 10px; }
  .header .mobile-menu { left: 24px; }
}
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header .brand-logo { width: 220px; }
}
@media (min-width: 761px) and (max-width: 1430px) {
  .header .call-button { display: inline-flex; min-width: 42px; min-height: 44px; justify-content: center; }
  .header .call-button span { display: none; }
}
@media (max-width: 760px) {
  .header, .header.scrolled { height: 78px; padding-inline: 20px; }
  .section-pad, .precision-stage { padding-top: 96px; }
  .header-brand { gap: 12px; }
  .header .brand-logo { width: 195px; }
  .menu-toggle { width: 42px; height: 44px; flex-basis: 42px; padding: 8px; }
  .header .mobile-menu { left: 0; width: 100%; max-height: calc(100svh - 150px); padding-inline: 24px; }
  .page-guide { bottom: calc(74px + env(safe-area-inset-bottom)); right: 20px; }
  .next-page { min-height: 44px; padding: 10px 13px; gap: 14px; }
  .guide-label { font-size: 9px; letter-spacing: .07em; }
  .guide-arrow { font-size: 21px; }
  .page-count { min-width: 74px; padding: 9px 12px; gap: 6px; font-size: 10px; }
  .page-count b { font-size: 15px; }
  .cinema-footer .film-label { display: none; }
  footer { padding-bottom: 150px; }
}
@media (max-width: 360px) {
  .header, .header.scrolled { padding-inline: 16px; gap: 8px; }
  .header .brand-logo { width: 170px; }
  .header-brand { gap: 10px; }
  .page-guide { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-arrow { animation: none; }
  .header, .desktop-nav a, .menu-toggle { transition: none; }
}
