/* =========================================================
   Garage Larragneguy — feuille de styles
   Police auto-hébergée (aucun appel à Google), aucun cookie.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --pine: #1d3a2f;        /* vert profond des vallées de Soule */
  --pine-2: #264b3d;
  --pine-soft: #dfe8e2;
  --red: #b22d25;         /* rouge atelier */
  --red-dark: #8f231d;
  --ink: #1c2226;
  --mute: #5b6663;
  --stone: #eef0eb;
  --paper: #ffffff;
  --line: #d6dbd4;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-stretch: 112%; font-weight: 700; line-height: 1.25; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 10px 14px; border-radius: var(--radius); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; font-stretch: 105%;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-2); }

/* ---------- En-tête ---------- */
.topbar { background: var(--pine); color: #d9e4dd; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-status { display: flex; align-items: center; gap: 8px; }

.dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa7a2; flex: none; }
.dot.open { background: #5fd08a; box-shadow: 0 0 0 3px rgba(95,208,138,.25); }
.dot.closed { background: #e06a5f; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.15rem; line-height: 1; }
.brand-sub { display: block; font-size: .8rem; color: var(--mute); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--red); }
.nav .btn { padding: 10px 16px; }

.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .topbar-hours { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--pine); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  /* silhouette des crêtes de Soule */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120V78l90-26 70 18 110-52 90 40 60-14 120 46 100-34 80 22 130-60 110 50 70-16 120 40 90-30 90 20 110-38v126z' fill='%23264b3d'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 128px; }
.hero-kicker { color: #b9ccc1; font-weight: 600; margin-bottom: 18px; }
.hero h1 { max-width: 15ch; }
.hero-lead { font-size: 1.2rem; color: #dbe6df; max-width: 36rem; margin: 24px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status-card { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.status-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; font-stretch: 112%; }
.status-head .dot { width: 12px; height: 12px; }
.status-detail { color: var(--mute); margin: 6px 0 18px; }
.hours { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours th, .hours td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--pine); }
.hours tr.today th::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin: 0 8px 2px 0; }
.hours .closed-day td { color: var(--mute); }
.status-note { font-size: .82rem; color: var(--mute); margin: 12px 0 18px; }
.status-card .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 110px; }
}

/* ---------- Bande de repères ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--stone); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 24px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-stretch: 125%; font-size: 1.5rem; font-weight: 800; color: var(--pine); line-height: 1.1; }
.facts span { color: var(--mute); font-size: .92rem; }
@media (max-width: 800px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 20px 16px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--stone); }
.section-head { max-width: 44rem; margin-bottom: 56px; }
.section-head p { color: var(--mute); font-size: 1.1rem; margin-top: 18px; }

/* ---------- Prestations ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.svc-group { padding: 32px 0; border-top: 2px solid var(--ink); }
.svc-group > h3 { font-size: 1.35rem; font-stretch: 125%; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.svc-group > h3 svg { width: 28px; height: 28px; color: var(--red); flex: none; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list strong { display: block; font-weight: 700; font-size: 1.04rem; }
.svc-list span { color: var(--mute); font-size: .96rem; }
.services-more { grid-column: 1 / -1; margin-top: 32px; background: var(--pine-soft); border-radius: var(--radius); padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.services-more p { margin: 0; max-width: 42rem; }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* ---------- Carte grise ---------- */
.siv { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.plate {
  display: inline-flex; align-items: stretch; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden;
  background: #fff; font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 28px;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.4);
}
.plate-eu { background: #1f3f9a; color: #fff; font-size: .45em; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 8px; letter-spacing: .02em; }
.plate-eu svg { width: 22px; height: 22px; margin-bottom: auto; margin-top: 2px; }
.plate-num { padding: 6px 18px; letter-spacing: .04em; }
.plate-dep { background: #1f3f9a; color: #fff; font-size: .45em; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 8px; }
.siv-points { list-style: none; padding: 0; margin: 24px 0 32px; }
.siv-points li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.siv-points li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.docs { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.docs h3 { margin-bottom: 6px; }
.docs > p { color: var(--mute); font-size: .95rem; }
.docs ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: d; }
.docs ol li { counter-increment: d; padding: 12px 0 12px 44px; position: relative; border-top: 1px solid var(--line); font-size: .98rem; }
.docs ol li::before { content: counter(d); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--pine-soft); color: var(--pine); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.docs small { display: block; color: var(--mute); margin-top: 16px; font-size: .85rem; }
@media (max-width: 900px) { .siv { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Véhicules d'occasion ---------- */
.vo { background: var(--ink); color: #fff; border-radius: 12px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.vo h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.vo p { color: #c9d0cd; margin: 16px 0 0; }
.vo-actions { display: flex; flex-direction: column; gap: 12px; }
.vo-actions .btn { justify-content: center; }
@media (max-width: 800px) { .vo { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about-text p { font-size: 1.08rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 36px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--pine); }
.timeline li:last-child::before { background: var(--red); border-color: var(--red); }
.timeline strong { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--pine); margin-bottom: 6px; }
.timeline span { color: var(--mute); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Avis ---------- */
.reviews-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.score { display: flex; align-items: center; gap: 18px; }
.score-num { font-stretch: 125%; font-weight: 800; font-size: 4.2rem; line-height: .9; color: var(--pine); }
.stars { color: #d49a1a; font-size: 1.2rem; letter-spacing: 2px; }
.score small { display: block; color: var(--mute); }
.reviews { columns: 3 300px; column-gap: 24px; }
.review { break-inside: avoid; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px; margin: 0 0 24px; }
.review blockquote { margin: 10px 0 18px; font-size: 1.05rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.review figcaption span { font-weight: 400; color: var(--mute); font-size: .88rem; display: block; }
.review figcaption .avatar { display: grid; font-size: 1rem; color: var(--pine); font-weight: 800; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pine-soft); color: var(--pine); display: grid; place-items: center; font-weight: 800; flex: none; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* ---------- Questions fréquentes ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--pine); }
.faq details p { margin: 0 0 24px; color: var(--mute); max-width: 62ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } .faq-wrap .section-head { position: static; } }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .96rem; background: var(--paper); }
.towns li.home { background: var(--pine); color: #fff; border-color: var(--pine); font-weight: 700; }
@media (max-width: 900px) { .zone { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.coords { list-style: none; margin: 0 0 32px; padding: 0; }
.coords li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.coords svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 2px; }
.coords strong { display: block; }
.coords a { font-weight: 600; }
.route { display: flex; flex-wrap: wrap; gap: 12px; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 36px; }
.form h3 { font-size: 1.4rem; font-stretch: 125%; font-weight: 800; }
.form > p { color: var(--mute); margin: 8px 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field label em { font-style: normal; color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fbfcfa; color: var(--ink); width: 100%; min-height: 50px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: none; box-shadow: 0 0 0 3px var(--pine-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot small { color: var(--mute); flex: 1 1 240px; font-size: .84rem; }
.form-msg { margin-top: 14px; font-weight: 600; color: var(--pine); display: none; }
.form-msg.show { display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .form { padding: 24px; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--pine); color: #c8d6cd; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand-sub { color: #b0c3b8; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; font-stretch: 112%; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .callbar .btn { justify-content: center; padding: 13px 10px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .status-card { padding: 22px; }
}

/* ---------- Pages légales ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal .updated { color: var(--mute); margin-bottom: 48px; }
.legal h2 { font-size: 1.45rem; margin: 48px 0 16px; padding-top: 24px; border-top: 2px solid var(--ink); }
.legal dl { display: grid; grid-template-columns: 220px 1fr; margin: 0; }
.legal dt, .legal dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.legal dt { font-weight: 700; padding-right: 16px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.todo { background: #fff3c4; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-weight: 600; text-decoration: none; color: var(--pine); }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }

@media print {
  .header, .topbar, .callbar, .hero::after, .menu-btn { display: none !important; }
  .hero { background: none; color: var(--ink); }
}
