/* Isneauville Automobile - feuille de style */

@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --asphalte: #1e2830;
  --asphalte-2: #2b3741;
  --bleu: #0b3d91;
  --bleu-fonce: #082f70;
  --fond: #ffffff;
  --surface: #eef1f3;
  --trait: #d5dbe0;
  --texte: #1e2830;
  --texte-2: #55626d;
  --vert: #2e7d4f;
  --ambre: #a35100;
  --rouge: #b42318;

  --f-texte: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --wrap: 1180px;
  --r-carte: 6px;
  --r-btn: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 1rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 0.18em; }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--f-titre);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--asphalte); color: #fff; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--f-titre); font-weight: 700; font-size: 1.45rem; line-height: 1.05; }
.brand-sub { font-size: 0.82rem; color: #b9c3cb; }
.header-phone {
  color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid #4a5763; border-radius: var(--r-btn); padding: 7px 12px;
}
.header-phone:hover { color: #fff; border-color: #fff; }
.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: #fff; background: transparent;
  border: 1px solid #4a5763; border-radius: var(--r-btn); padding: 7px 12px; cursor: pointer;
}
.site-nav { background: var(--asphalte-2); }
.site-nav ul { list-style: none; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; }
.site-nav a {
  display: block; padding: 12px 12px; color: #dfe5ea; text-decoration: none; font-weight: 500; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }

@media (max-width: 760px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 4px 16px 12px; }
  .site-nav a { border-bottom: 0; border-left: 3px solid transparent; padding: 10px 12px; }
  .site-nav a[aria-current="page"] { border-left-color: #fff; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; text-align: center; text-decoration: none;
  border-radius: var(--r-btn); padding: 11px 20px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--bleu); color: #fff; }
.btn-primary:hover { background: var(--bleu-fonce); color: #fff; }
.btn-outline { border-color: var(--bleu); color: var(--bleu); background: #fff; }
.btn-outline:hover { background: var(--bleu); color: #fff; }
.btn-light { background: #fff; color: var(--asphalte); }
.btn-light:hover { background: #e6ebef; color: var(--asphalte); }
.btn-ghost { border-color: #7d8a95; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--rouge); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }

/* ---------- Accueil : bandeau ---------- */
.hero { background: var(--asphalte); color: #fff; position: relative; padding: 48px 0 70px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } .hero { padding: 72px 0 96px; } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; max-width: 14ch; margin-bottom: 0.35em; }
.hero .lead { color: #c9d2d9; font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* La route : le marquage au sol sous le bandeau */
.road {
  position: absolute; left: 0; right: 0; bottom: 22px; height: 6px;
  background: repeating-linear-gradient(90deg, #f2f4f5 0 54px, transparent 54px 96px);
  opacity: .85;
}

.search { background: #fff; color: var(--texte); border-radius: var(--r-carte); padding: 24px; }
.search-title { font-size: 1.5rem; margin-bottom: 16px; }
.seg { border: 0; padding: 0; margin: 0 0 16px; display: flex; border: 1px solid var(--trait); border-radius: var(--r-btn); overflow: hidden; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 6px; cursor: pointer; font-weight: 500; font-size: 0.95rem; }
.seg label + label span { border-left: 1px solid var(--trait); }
.seg input:checked + span { background: var(--asphalte); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #f5b400; outline-offset: -3px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; }
.page-head { background: var(--surface); padding: 36px 0 28px; border-bottom: 1px solid var(--trait); }
.page-head h1 { margin-bottom: 0.2em; }
.page-head p { color: var(--texte-2); margin: 0; }
.empty { background: var(--surface); padding: 24px; border-radius: var(--r-carte); }

/* ---------- Plaque d'immatriculation ---------- */
.plate {
  display: inline-flex; align-items: stretch; margin: 0 0 10px;
  background: #fff; border: 1.5px solid #20262b; border-radius: 3px; overflow: hidden;
  font-family: var(--f-titre); font-weight: 600; line-height: 1;
}
.plate-band {
  background: var(--bleu); color: #fff; width: 20px; display: flex; align-items: flex-end; justify-content: center;
  font-size: 0.72rem; padding-bottom: 3px;
}
.plate-text { padding: 5px 10px 4px; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: #15191c; }
.plate-lg .plate-band { width: 26px; font-size: 0.85rem; }
.plate-lg .plate-text { font-size: 1.4rem; padding: 7px 14px 6px; }

/* ---------- Cartes véhicules ---------- */
.vgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vcard { background: #fff; border: 1px solid var(--trait); border-radius: var(--r-carte); overflow: hidden; }
.vcard:hover { border-color: #9aa7b2; }
.vcard-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.vcard-link:hover { color: inherit; }
.vcard-img { position: relative; aspect-ratio: 3 / 2; background: var(--surface); }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; }
.flag { position: absolute; top: 10px; left: 10px; font-size: 0.85rem; font-weight: 600; padding: 3px 9px; border-radius: 3px; }
.flag-reserve { background: var(--ambre); color: #fff; }
.vcard-body { padding: 16px 16px 18px; }
.vcard-title { font-size: 1.4rem; margin: 0; }
.vcard-version { color: var(--texte-2); margin: 2px 0 12px; font-size: 0.95rem; }
.vcard-specs { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--texte-2); font-size: 0.93rem; }
.vcard-price { font-family: var(--f-titre); font-weight: 700; font-size: 1.6rem; margin: 0; color: var(--texte); }

/* ---------- Cartes actualités ---------- */
.ngrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.ncard { background: #fff; border-radius: var(--r-carte); overflow: hidden; border: 1px solid var(--trait); }
.ncard a { display: block; color: inherit; text-decoration: none; height: 100%; }
.ncard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ncard-body { padding: 18px; }
.ncard h2, .ncard h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.ncard p { color: var(--texte-2); margin-bottom: 0.4em; }
.ncard a:hover h2, .ncard a:hover h3 { color: var(--bleu); }
.tag-offer { display: inline-block; color: var(--vert) !important; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px !important; }
.ncard-date { color: var(--texte-2); font-size: 0.92rem; }
.tabs { display: flex; gap: 8px; margin-top: 14px !important; }
.tabs a { padding: 6px 14px; border: 1px solid var(--trait); border-radius: 999px; text-decoration: none; color: var(--texte); background: #fff; font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--asphalte); border-color: var(--asphalte); color: #fff; }

/* ---------- Services et visite ---------- */
.services { max-width: 900px; }
.service-list { display: grid; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--trait); }
.service-list > div { display: grid; gap: 4px 28px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
@media (min-width: 720px) { .service-list > div { grid-template-columns: 240px 1fr; } }
.service-list dt { font-family: var(--f-titre); font-weight: 600; font-size: 1.25rem; }
.service-list dd { margin: 0; color: var(--texte-2); }
.section-visit { background: var(--asphalte); color: #fff; }
.section-visit a:not(.btn) { color: #fff; }
.visit { display: grid; gap: 32px; }
@media (min-width: 760px) { .visit { grid-template-columns: 1fr 1fr; } }
.visit-address { font-size: 1.15rem; }
.visit-phone { font-family: var(--f-titre); font-weight: 700; font-size: 1.7rem; }
.visit-phone a { text-decoration: none; }

/* ---------- Catalogue ---------- */
.catalogue { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 56px; }
@media (min-width: 900px) { .catalogue { grid-template-columns: 250px 1fr; align-items: start; } .filters { position: sticky; top: 16px; } }
.filters { background: var(--surface); border-radius: var(--r-carte); padding: 18px; }
.filters-title { font-size: 1.3rem; }
.reset { display: block; text-align: center; margin-top: 10px; font-size: 0.93rem; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pager a { min-width: 40px; padding: 8px 10px; text-align: center; border: 1px solid var(--trait); border-radius: var(--r-btn); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--asphalte); color: #fff; border-color: var(--asphalte); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; margin-bottom: 5px; font-size: 0.95rem; }
.opt { color: var(--texte-2); font-weight: 400; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=password], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--texte); background: #fff;
  border: 1px solid #aab5be; border-radius: var(--r-btn); padding: 9px 11px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--bleu); outline: 2px solid rgba(11, 61, 145, .25); outline-offset: 0; }
.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--rouge); }
.error { color: var(--rouge); font-size: 0.92rem; margin: 5px 0 0; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-layout { display: grid; gap: 36px; }
@media (min-width: 900px) { .form-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.form { max-width: 680px; }
.form-context { background: var(--surface); padding: 12px 14px; border-radius: var(--r-btn); }
.contact-card { background: var(--surface); padding: 22px; border-radius: var(--r-carte); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card .visit-phone a { color: var(--texte); }
.notice { padding: 18px 20px; border-radius: var(--r-carte); margin-bottom: 20px; border-left: 5px solid; }
.notice p:last-child { margin-bottom: 0; }
.notice-ok { background: #e8f3ec; border-color: var(--vert); }
.notice-err { background: #fdecea; border-color: var(--rouge); }

/* ---------- Fiche véhicule ---------- */
.vdetail { padding-top: 20px; padding-bottom: 40px; }
.crumbs { font-size: 0.93rem; color: var(--texte-2); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.vdetail-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .vdetail-grid { grid-template-columns: 1fr 360px; align-items: start; } }
.gallery-main { margin: 0; background: var(--surface); border-radius: var(--r-carte); overflow: hidden; aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; width: 100%; aspect-ratio: 3 / 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--bleu); }
.vsummary { border: 1px solid var(--trait); border-radius: var(--r-carte); padding: 22px; }
@media (min-width: 960px) { .vsummary { position: sticky; top: 16px; } }
.vsummary h1 { margin-bottom: 0.1em; }
.vsummary-version { color: var(--texte-2); margin-bottom: 14px; }
.vsummary-price { font-family: var(--f-titre); font-weight: 700; font-size: 2.4rem; line-height: 1; margin: 6px 0 16px; }
.vsummary-actions { display: grid; gap: 10px; }
.vsummary-ref { color: var(--texte-2); font-size: 0.88rem; margin: 14px 0 0; }
.status { font-weight: 600; }
.status-reserve { color: var(--ambre); }
.status-vendu { color: var(--rouge); }
.vdetail-info { display: grid; gap: 36px; margin-top: 40px; max-width: 900px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--trait); }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--trait); margin-right: 24px; }
.specs dt { color: var(--texte-2); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.equipment { columns: 2 240px; column-gap: 32px; padding-left: 1.1em; margin: 0; }
.equipment li { margin-bottom: 4px; break-inside: avoid; }

/* ---------- Article ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.article { max-width: 800px; padding-top: 24px; padding-bottom: 56px; }
.article .lead { font-size: 1.2rem; }
.article-img { border-radius: var(--r-carte); margin: 8px 0 24px; width: 100%; }
.article-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.legal-small { font-size: 0.85rem; color: var(--texte-2); border-top: 1px solid var(--trait); padding-top: 12px; margin-top: 24px; }
.legal h2 { font-size: 1.35rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: #151c22; color: #c3ccd3; padding: 44px 0 20px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-name { font-family: var(--f-titre); font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-note { font-size: 0.82rem; color: #8b97a1; margin-top: 28px; border-top: 1px solid #2b3741; padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
