/*
Theme Name: L'Atelier de l'Orne
Theme URI: https://latelierdelorne.com
Author: L'Atelier de l'Orne
Description: Site commercial et catalogue de véhicules d'occasion de L'Atelier de l'Orne.
Version: 4.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: atelier-orne
*/

:root {
  --navy: #08264b;
  --navy-deep: #03162d;
  --red: #c7372f;
  --paper: #f4f5f6;
  --white: #ffffff;
  --ink: #101820;
  --muted: #65707d;
  --line: #d8dde2;
  --header: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .topbar { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 14px; background: var(--white); color: var(--navy-deep); }
.page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px;
  color: #cbd7e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--red); }

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.single-ladlo_vehicle .topbar,
.page:not(.home) .topbar,
.blog .topbar,
.search .topbar,
.error404 .topbar { background: var(--navy-deep); }
.topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 36px;
}
.brand img { width: 178px; max-height: 58px; object-fit: contain; object-position: left center; }
.main-nav { justify-self: center; display: flex; gap: 34px; font-size: 14px; font-weight: 700; }
.main-nav a, .footer-links a { transition: opacity .2s ease; }
.main-nav a:hover, .footer-links a:hover { opacity: .68; }
.header-phone {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}
.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle > span[aria-hidden] { width: 18px; height: 2px; display: block; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] > span[aria-hidden]:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span[aria-hidden]:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span[aria-hidden]:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.hero-home {
  position: relative;
  min-height: 760px;
  height: 94svh;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 52%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 16, 34, .58);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: var(--header); }
.hero-copy { width: min(660px, 67%); }
.hero-brand { margin: 0 0 20px; font-size: 30px; font-weight: 800; }
.hero-copy h1 {
  max-width: 640px;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 82px;
  font-weight: 500;
  line-height: .98;
}
.hero-lead { max-width: 570px; margin: 28px 0 0; color: #e1e7ee; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover { background: #a92b25; }
.button-ghost { border-color: rgba(255,255,255,.65); color: var(--white); }
.button-ghost:hover { background: var(--white); color: var(--navy-deep); }
.button-dark { background: var(--navy); color: var(--white); }
.hero-scroll { position: absolute; z-index: 3; right: 4vw; bottom: 34px; color: #e3e9f0; font-size: 13px; font-weight: 700; }
.hero-scroll span { margin-left: 12px; }

.stock-section { padding: 110px 0 120px; background: var(--paper); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}
.section-heading h2, .service-layout h2, .contact-layout h2, .approach-intro h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
}
.arrow-link { color: var(--navy); font-size: 14px; font-weight: 800; white-space: nowrap; }
.arrow-link span { display: inline-block; margin-left: 10px; transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(5px); }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vehicle-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.vehicle-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe3e7;
}
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.vehicle-card:hover .vehicle-media img { transform: scale(1.035); }
.vehicle-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 13px; font-weight: 700; }
.status-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  background: var(--white);
  color: var(--navy);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.vehicle-body { padding: 24px; }
.vehicle-kicker { min-height: 19px; margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.vehicle-body h3 { min-height: 58px; margin: 0; font-size: 21px; line-height: 1.28; }
.vehicle-facts { min-height: 32px; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.vehicle-facts span + span::before { content: '·'; margin-right: 14px; }
.vehicle-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.vehicle-card-footer strong { color: var(--navy); font-size: 22px; }
.vehicle-card-footer a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.empty-stock { grid-column: 1 / -1; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-stock h2, .empty-stock h3 { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: 36px; font-weight: 500; }
.empty-stock p { max-width: 620px; color: var(--muted); }

.approach-section { padding: 120px 0; background: var(--navy); color: var(--white); }
.approach-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 110px; align-items: start; }
.approach-intro p:last-child { max-width: 500px; margin-top: 28px; color: #cbd5df; font-size: 17px; }
.approach-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.approach-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.approach-list > li > span { color: #91a4ba; font-size: 12px; font-weight: 800; }
.approach-list h3 { margin: 0 0 6px; font-size: 22px; }
.approach-list p { margin: 0; color: #cbd5df; }

.service-band { padding: 110px 0; background: var(--white); }
.service-layout { display: grid; grid-template-columns: .45fr 1.2fr .9fr; gap: 44px; align-items: center; }
.service-layout h2 { font-size: 55px; }
.service-layout > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.service-layout .button { grid-column: 2; justify-self: start; }

.contact-section { padding: 120px 0; background: var(--navy-deep); color: var(--white); }
.contact-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 110px; }
.contact-layout > div:first-child > p:last-child { max-width: 500px; color: #bfcbd8; }
.contact-list { border-top: 1px solid rgba(255,255,255,.25); }
.contact-list > a, .contact-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-list span { color: #91a4ba; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.contact-list strong { font-size: 17px; }

.site-footer { padding: 46px 0; background: #020e1d; color: #aeb9c7; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: end; }
.footer-logo { width: 145px; margin-bottom: 10px; }
.footer-inner p { margin: 0; font-size: 12px; }
.footer-links { display: flex; gap: 22px; color: var(--white); font-size: 13px; font-weight: 700; }
.footer-legal { text-align: right; }

.catalog-hero { padding: 180px 0 90px; background: var(--navy-deep); color: var(--white); }
.catalog-hero h1 { max-width: 760px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 82px; font-weight: 500; line-height: 1; }
.catalog-hero p:last-child { max-width: 650px; margin: 26px 0 0; color: #c6d1dd; font-size: 17px; }
.catalog-results { min-height: 400px; padding: 70px 0 120px; }
.catalog-count { margin-bottom: 28px; color: var(--muted); font-size: 13px; font-weight: 700; }
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); }
.page-numbers.current { background: var(--navy); color: var(--white); }

.vehicle-page { padding-top: calc(var(--header) + 46px); background: var(--white); }
.vehicle-page + .site-footer { margin-top: 0; }
.vehicle-breadcrumb { padding: 20px 0 30px; color: var(--muted); font-size: 13px; font-weight: 700; }
.vehicle-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 52px; padding-bottom: 90px; }
.vehicle-gallery { aspect-ratio: 4 / 3; overflow: hidden; background: #e4e7ea; }
.vehicle-gallery img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-summary h1 { margin: 0; color: var(--navy-deep); font-family: Georgia, 'Times New Roman', serif; font-size: 66px; font-weight: 500; line-height: 1.02; }
.vehicle-price { margin: 22px 0; color: var(--navy); font-size: 30px; font-weight: 800; }
.reservation-note { padding: 12px 14px; background: #f5e5e3; color: #8c241f; border-radius: 4px; font-weight: 800; }
.vehicle-quickfacts { margin-top: 30px; border-top: 1px solid var(--line); }
.vehicle-quickfacts div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vehicle-quickfacts span { color: var(--muted); font-size: 13px; }
.vehicle-quickfacts strong { text-align: right; font-size: 14px; }
.vehicle-actions { display: grid; gap: 10px; margin-top: 30px; }
.vehicle-description { padding: 80px 0 100px; border-top: 1px solid var(--line); }
.vehicle-description .prose { max-width: 760px; }

.standard-page { min-height: 70vh; padding: 150px 0 100px; background: var(--white); }
.prose h1 { color: var(--navy-deep); font-family: Georgia, 'Times New Roman', serif; font-size: 52px; font-weight: 500; }
.prose { font-size: 17px; }
.prose p { max-width: 760px; }
.prose a { color: var(--red); text-decoration: underline; }

.motion-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: 190px 1fr auto; }
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 24px;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .header-phone { justify-self: end; }
  .hero-copy { width: min(680px, 86%); }
  .hero-copy h1 { font-size: 64px; }
  .section-heading h2, .service-layout h2, .contact-layout h2, .approach-intro h2 { font-size: 50px; }
  .catalog-hero h1 { font-size: 64px; }
  .vehicle-summary h1 { font-size: 54px; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid, .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .service-layout { grid-template-columns: 1fr 1fr; }
  .service-layout .eyebrow { grid-column: 1 / -1; }
  .service-layout .button { grid-column: 1; }
  .vehicle-detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  :root { --header: 70px; }
  body.admin-bar .topbar { top: 46px; }
  .page-shell { width: min(100% - 30px, 1180px); }
  .topbar-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .brand img { width: 138px; }
  .header-phone { display: none; }
  .hero-home { min-height: 680px; height: 92svh; }
  .hero-backdrop { object-position: 72% 50%; }
  .hero-shade { background: rgba(2, 16, 34, .7); }
  .hero-copy { width: 100%; padding-top: 28px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .hero-scroll { display: none; }
  .stock-section, .approach-section, .service-band, .contact-section { padding: 80px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2, .service-layout h2, .contact-layout h2, .approach-intro h2 { font-size: 40px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-body h3 { min-height: 0; }
  .service-layout { grid-template-columns: 1fr; gap: 26px; }
  .service-layout .eyebrow, .service-layout .button { grid-column: auto; }
  .contact-list > a, .contact-list > div { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { flex-wrap: wrap; }
  .catalog-hero { padding: 140px 0 70px; }
  .catalog-hero h1 { font-size: 50px; }
  .vehicle-page { padding-top: var(--header); }
  .vehicle-detail { gap: 30px; }
  .vehicle-summary h1 { font-size: 44px; }
  .vehicle-quickfacts div { grid-template-columns: 1.15fr .85fr; }
}

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

