/*
Theme Name: Automotive Market
Description: Reprise fidèle du site Automotive Market : design original, 21 pages, catalogue Vroomiz et avis Google.
Version: 2.2.3
Author: Automotive Market
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: automotive-market
*/

/* The original styles are enqueued from assets/style.css and assets/glass.css. */
body.admin-bar > header { top: 48px; }
@media (max-width: 782px) { body.admin-bar > header { top: 54px; } }
@media (max-width: 600px) { body.admin-bar > header { top: 8px; } }
.am-generic-content { max-width: 1100px; margin: auto; min-height: 45vh; }
.am-generic-content a { text-decoration: underline; }

/* Keep the complete logo inside the header, with balanced space around it. */
body > header .brand {
  width: 210px;
  height: 74px;
  flex-shrink: 0;
}
body > header .brand .brand-logo {
  width: 260px;
  height: auto;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  mix-blend-mode: lighten;
}
@media (max-width: 1050px) {
  body > header .brand { width: 190px; height: 70px; }
  body > header .brand .brand-logo { width: 244px; }
}
@media (max-width: 760px) {
  body > header .brand { width: 180px; height: 64px; }
  body > header .brand .brand-logo { width: 226px; }
}

/* Blend the footer logo into its dark background. */
body > footer .footer-brand .brand-logo {
  mix-blend-mode: lighten;
}

/* Legal information stays readable and available from every page. */
body > footer .footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body > footer .footer-legal { color: #d2dbe8; text-decoration: underline; text-underline-offset: 4px; }
body > footer .footer-legal:hover { color: #ffb4aa; }
.am-legal-page { max-width: 960px; margin: auto; padding: 48px 6% 72px; }
.am-legal-page h1 { font-size: clamp(36px, 5vw, 60px); margin: 16px 0 36px; }
.am-legal-content { color: #d2dbe8; line-height: 1.8; overflow-wrap: anywhere; }
.am-legal-content section { padding: 28px 0; border-top: 1px solid #ffffff20; }
.am-legal-content h2 { color: #f5f7fb; font-size: clamp(23px, 3vw, 30px); margin: 0 0 18px; letter-spacing: -.025em; }
.am-legal-content p { margin: 0 0 14px; }
.am-legal-content a { text-decoration: underline; text-underline-offset: 4px; }
.am-legal-content strong { color: #f5f7fb; }
.am-legal-updated { margin-top: 28px; font-size: 13px; color: #aebdd0; }
@media (max-width: 760px) {
  body > footer .footer-meta { align-items: flex-start; }
  .am-legal-page { padding: 32px 6% 48px; }
}

/* Clear visual markers for each workshop and vehicle service. */
.am-service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; flex-shrink: 0; margin-bottom: 24px;
  color: #ffb2a6; border: 1px solid #ffb6a63b; border-radius: 20px;
  background: radial-gradient(circle at 25% 10%, #ff9d842c, transparent 75%), #ffffff08;
  box-shadow: inset 0 1px 0 #ffffff18;
}
.am-service-icon svg { display: block; width: 36px; height: 36px; }
.am-prestation-cards .am-service-card { min-height: 328px; }
.am-prestation-cards .am-service-card::before { position: absolute; top: 31px; right: 28px; margin: 0; color: #aab7c9; }
.am-prestation-cards .detail-link { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.am-prestation-cards--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-intro-icon { margin: 0 0 24px; }
.am-directory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 30px; }
.am-directory-actions .button { display: inline-flex; align-items: center; gap: 12px; }
.am-button-icon { display: inline-flex; }
.am-button-icon svg { width: 21px; height: 21px; }
.am-home-directory { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 40px; }
.am-home-directory > div { max-width: none; min-width: 0; }
.am-shortcuts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.am-shortcuts > a { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 14px; border: 1px solid #ffffff20; border-radius: 16px; background: #ffffff06; font-size: 14px; color: #e7edf6; text-decoration: none; }
.am-shortcuts > a:hover { border-color: #ffb2a66b; background: #ffffff0e; }
.am-shortcut-icon { display: inline-flex; color: #ffb2a6; flex-shrink: 0; }
.am-shortcut-icon svg { width: 27px; height: 27px; }
.am-shortcut-arrow { margin-left: auto; color: #acb9cb; }
.finance-note > .am-service-icon { margin-bottom: 16px; }
.finance-note > .availability { margin-left: 16px; vertical-align: top; margin-top: 18px; }
.reviews [data-elfsight-app-lazy] { min-height: 320px; }
body > main a:focus-visible, body > main button:focus-visible, body > header a:focus-visible, body > footer a:focus-visible { outline: 3px solid #ffb2a6; outline-offset: 5px; }
@media (max-width: 1050px) {
  .am-home-directory { grid-template-columns: 1fr; }
  .am-home-directory > .button { justify-self: start; }
  .am-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body > header nav { display: grid; grid-template-columns: 1fr .9fr .9fr 1.4fr; gap: 2px; }
  body > header nav a, body > header nav > a:not(.nav-contact), body > header nav .nav-contact { font-size: 12px; padding: 11px 2px; text-align: center; justify-content: center; min-width: 0; white-space: nowrap; }
  .am-prestation-cards--services { grid-template-columns: 1fr; }
  .am-prestation-cards .am-service-card { min-height: 0; }
  .am-service-icon { width: 60px; height: 60px; border-radius: 17px; margin-bottom: 22px; }
  .am-service-icon svg { width: 32px; height: 32px; }
  .am-home-directory { gap: 24px; }
  .am-shortcuts > a { flex-wrap: wrap; gap: 10px 7px; padding: 13px 11px; font-size: 13px; }
  .am-shortcut-arrow { display: none; }
  .am-directory-actions { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-cards article, .stock-card, .button, .am-shortcuts > a { transition: none; }
  .page-cards article:hover, .stock-card:hover, .button:hover { transform: none; }
}
