/*
Theme Name: Jiroum sur mesure
Theme URI: https://jiroumauto.fr/
Author: Jiroum Auto
Description: Thème sur mesure pour Jiroum Auto. Conserve les pages et leurs permaliens WordPress.
Version: 0.2.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jiroum-sur-mesure
*/

:root {
  --ink: #172635;
  --blue: #174b83;
  --blue-deep: #123962;
  --red: #df3337;
  --paper: #ffffff;
  --mist: #f2f5f7;
  --line: #d9e2e9;
  --muted: #526272;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.screen-reader-text { 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; left: 16px; top: 16px; width: auto; height: auto; padding: 10px 16px; clip: auto; color: #fff; background: var(--blue-deep); }

/* The thin red line belongs to the garage's existing mark. */
.site-header { position: relative; z-index: 20; color: #fff; background: var(--blue-deep); }
.site-header::before { content: ""; display: block; height: 5px; background: var(--red); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 112px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: none; }
.brand img { display: block; width: 200px; height: auto; }
.header-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 26px; font-size: .87rem; }
.header-contact a { color: #fff; text-decoration: none; }
.header-contact a:hover { text-decoration: underline; }
.phone-link { font-size: 1.22rem; font-weight: 800; letter-spacing: .015em; }
.contact-address { color: #d4e1ed; }
.nav-band { border-top: 1px solid rgba(255,255,255,.15); }
.primary-nav > ul { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; list-style: none; margin: 0; }
.primary-nav > ul > li > a { display: block; padding: 17px 19px; color: #fff; font-size: .81rem; font-weight: 750; letter-spacing: .035em; line-height: 1.25; text-decoration: none; text-transform: uppercase; }
.primary-nav > ul > li:first-child > a { padding-left: 0; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > .current-menu-item > a, .primary-nav > ul > .current-menu-ancestor > a { color: #fff; box-shadow: inset 0 -4px var(--red); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 50; display: none; min-width: 260px; max-width: 340px; margin: 0; padding: 9px; background: #fff; box-shadow: 0 16px 30px rgba(10,31,52,.19); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 9px 11px; color: var(--ink); font-size: .83rem; line-height: 1.35; text-decoration: none; }
.primary-nav .sub-menu a:hover { color: var(--blue-deep); background: var(--mist); }
.mobile-nav { display: none; }

.hero { position: relative; isolation: isolate; min-height: 530px; display: flex; align-items: center; color: #fff; background: #20364b; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-image) center 48% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,35,55,.9) 0%, rgba(13,35,55,.77) 38%, rgba(13,35,55,.18) 100%); }
.hero-inner { padding-block: 74px 82px; }
.hero h1 { max-width: 750px; margin: 0 0 21px; font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif; font-size: clamp(2.75rem, 5vw, 5.15rem); font-weight: 850; line-height: 1.03; letter-spacing: -.035em; text-wrap: balance; }
.hero p { max-width: 570px; margin: 0 0 30px; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; color: #e8f1f8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 11px 21px; border: 2px solid transparent; border-radius: 2px; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.button-red { color: #fff; background: var(--red); }
.button-red:hover { color: #fff; background: #ba242c; }
.button-outline { color: #fff; border-color: #fff; }
.button-outline:hover { color: var(--blue-deep); background: #fff; }
.hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: -1px; color: #fff; background: var(--blue); }
.hero-strip > div { padding: 19px 26px; border-right: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.hero-strip > div:last-child { border-right: 0; }
.hero-strip strong { display: block; font-size: 1rem; }

.page-banner { padding: 45px 0 41px; color: #fff; background: var(--blue-deep); }
.page-banner .container { display: grid; gap: 9px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #cfdae5; font-size: .85rem; }
.breadcrumbs a { color: #cfdae5; }
.breadcrumbs span[aria-hidden] { color: #85a4c1; }
.page-banner h1, .page-banner-title { max-width: 870px; margin: 0; font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.027em; }
.content-shell { padding-block: 65px 80px; }
.front-content { padding-top: 64px; }
.entry-content { max-width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { max-width: 76ch; }
.entry-content p[style*="text-align: justify"] { text-align: left !important; }
.entry-content h2 { font-size: clamp(1.7rem, 2.7vw, 2.4rem); line-height: 1.18; }
.entry-content h3 { font-size: 1.28rem; line-height: 1.25; }
.entry-content .vc_row { margin-inline: 0 !important; margin-top: 0 !important; margin-bottom: 36px !important; }
.entry-content .vc_column_container > .vc_column-inner { padding-inline: 12px; }
.entry-content .vc_row:first-child .vc_column_container > .vc_column-inner { padding-left: 0; }
.entry-content .vc_row:after { content: ""; display: table; clear: both; }
.entry-content .wpb_content_element { margin-bottom: 20px; }
.entry-content .wpb_text_column p { margin-top: 0; }
.entry-content .wpb_text_column p:last-child { margin-bottom: 0; }
.section-heading { margin: 0 0 29px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--ink); }
.section-heading h2, .section-heading h3, .section-heading h4 { margin: 0; font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; }
.service-card { height: 100%; min-height: 245px; background: var(--mist); border: 1px solid var(--line); }
.service-card img { width: 100%; height: 165px; object-fit: cover; display: block; }
.service-card-body { padding: 18px 21px 22px; }
.service-card h3 { margin: 0 0 7px; font-size: 1.28rem; line-height: 1.23; }
.service-card p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.service-card a { font-weight: 750; text-decoration: none; }
.service-card a:hover { text-decoration: underline; }
.info-block { padding: 21px 24px; border-left: 4px solid var(--red); background: var(--mist); }
.info-block h3, .info-block h4 { margin: 0 0 8px; }
.info-block p { margin: 0; }
.entry-content .shortcode-list { padding-left: 1.25rem; }
.entry-content .shortcode-list li { margin-bottom: 5px; }
.entry-content .shortcode-list.columns { columns: 3 170px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.faq-item > div { padding: 0 0 17px; }
.price-card { padding: 22px; background: var(--mist); border: 1px solid var(--line); }
.price-card h3 { margin: 0 0 4px; }
.price-card .price { font-size: 1.4rem; font-weight: 800; }
.section-divider { margin: 35px 0; border: 0; border-top: 1px solid var(--line); }
.contact-form-wrap input:not([type="submit"]), .contact-form-wrap textarea, .wpcf7 input:not([type="submit"]), .wpcf7 textarea { width: 100%; max-width: 100%; padding: 11px 13px; border: 1px solid #b9c8d4; border-radius: 2px; background: #fff; }
.wpcf7 input[type="submit"] { padding: 12px 24px; border: 0; color: #fff; background: var(--red); font-weight: 750; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: #ba242c; }
.entry-content iframe { max-width: 100%; }

.site-footer { color: #d8e2ec; background: #102c47; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 52px; padding-block: 57px; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: 1.1rem; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 7px; }
.footer-bottom { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: .85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 900px) {
  .header-main { min-height: 87px; }
  .brand img { width: 160px; }
  .contact-address, .nav-band { display: none; }
  .mobile-nav { display: block; padding-bottom: 14px; }
  .mobile-nav summary { display: inline-block; padding: 7px 16px; border: 1px solid rgba(255,255,255,.5); cursor: pointer; font-weight: 700; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav ul { margin: 10px 0 0; padding: 0; list-style: none; }
  .mobile-nav li { margin: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .mobile-nav a { display: block; padding: 10px; color: #fff; text-decoration: none; }
  .mobile-nav .sub-menu { margin: 0 0 8px 16px; }
  .hero { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 30px), var(--wrap)); }
  .header-main { gap: 14px; min-height: 76px; }
  .brand img { width: 143px; }
  .phone-link { font-size: .9rem; }
  .hero { min-height: 495px; }
  .hero::before { background-position: 62% center; }
  .hero::after { background: linear-gradient(90deg, rgba(13,35,55,.95), rgba(13,35,55,.55)); }
  .hero-inner { padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.7rem); }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip > div { padding: 13px 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .content-shell { padding-block: 45px 55px; }
  .entry-content .vc_column_container { width: 100% !important; }
  .entry-content .vc_column_container > .vc_column-inner { padding-inline: 0; }
  .footer-grid { grid-template-columns: 1fr; padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
