/* =========================================================
   Garage Rapid'Vulca — feuille de style
   Palette : papier chaud, encre espresso, terre cuite, mousse
   ========================================================= */

:root {
  --bg: #f5efe4;
  --bg-soft: #efe6d6;
  --surface: #fbf7ef;
  --ink: #2b1e14;
  --ink-soft: #5c4a3a;
  --ink-faint: #8a7663;
  --accent: #c25a37;
  --accent-deep: #9c4224;
  --secondary: #6a7a4a;
  --rule: #d9cbb6;
  --warm-light: rgba(226, 168, 108, 0.30);
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 12px 32px -18px rgba(43, 30, 20, 0.35);
  --glow-y: 22%;
  --maxw: 1180px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a120b;
    --bg-soft: #221810;
    --surface: #241a12;
    --ink: #f2e8da;
    --ink-soft: #cbb9a4;
    --ink-faint: #9c8874;
    --accent: #e07a52;
    --accent-deep: #f0906b;
    --secondary: #9db075;
    --rule: #3d2d20;
    --warm-light: rgba(200, 120, 60, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
  }
}

html[data-theme="dark"] {
  --bg: #1a120b;
  --bg-soft: #221810;
  --surface: #241a12;
  --ink: #f2e8da;
  --ink-soft: #cbb9a4;
  --ink-faint: #9c8874;
  --accent: #e07a52;
  --accent-deep: #f0906b;
  --secondary: #9db075;
  --rule: #3d2d20;
  --warm-light: rgba(200, 120, 60, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

h1, h2, h3, .foot-brand {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-variation-settings: "SOFT" 20, "WONK" 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.small { font-size: 0.93rem; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }

/* ---------- halo lumineux (fond) ---------- */

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% var(--glow-y), var(--warm-light) 0, transparent 62%);
  transition: background 0.15s linear;
}

/* ---------- en-tête ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  animation: slide-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8f0;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; }
.brand-text small { color: var(--ink-faint); font-size: 0.76rem; letter-spacing: 0.02em; }

.site-nav {
  display: flex;
  gap: 0.35rem 1.15rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.55rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

.head-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
.theme-icon {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -4px -3px 0 0 var(--surface);
}
html[data-theme="dark"] .theme-icon,
html:not([data-theme="light"]) .theme-icon { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon {
    background: var(--ink);
    box-shadow: none;
  }
}
html[data-theme="dark"] .theme-icon { background: var(--ink); box-shadow: none; }
html[data-theme="light"] .theme-icon { background: var(--ink); box-shadow: inset -4px -3px 0 0 var(--surface); }

.phone-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff8f0;
  text-decoration: none;
  line-height: 1.15;
}
.phone-btn:hover { background: var(--accent-deep); color: #fff8f0; }
.phone-btn-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; opacity: 0.85; }
.phone-btn-num { font-weight: 600; font-size: 0.98rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }

.kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fade-up 0.7s ease-out 0.15s both;
}

.hero-title {
  position: relative;
  max-width: 20ch;
  margin-bottom: 1.4rem;
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-title .default,
.hero-title .alt {
  display: block;
  transition: opacity 0.35s ease;
}
.hero-title .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--secondary);
  font-style: italic;
  pointer-events: none;
}
.hero-title:hover .default,
.hero-title:focus-visible .default { opacity: 0; }
.hero-title:hover .alt,
.hero-title:focus-visible .alt { opacity: 1; }

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 58ch;
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}
.hero-sub a { font-weight: 600; white-space: nowrap; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0 2.6rem;
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff8f0; }
.btn-primary:hover { background: var(--accent-deep); color: #fff8f0; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-lg { font-size: 1.1rem; padding: 0.9rem 1.9rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem 2rem;
  margin: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}
.hero-facts dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}
.hero-facts dd { margin: 0; font-family: 'Fraunces', serif; font-size: 1.15rem; }
.hero-facts dd span { font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- bandeau photo ---------- */

.band-photo { padding-block: clamp(1rem, 3vw, 2rem); }

figure { margin: 0; }
.photo-wide img,
.photo-tall img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
figcaption {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 0.7rem;
  max-width: 62ch;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(2.6rem, 6vw, 5rem); }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.section-head h2 { max-width: 24ch; }
.lede { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- grille « journal » ---------- */

.broadsheet {
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--rule);
}
.broadsheet > .col { break-inside: avoid; }
.broadsheet h3 {
  margin-top: 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.broadsheet h3 + * { margin-top: 1rem; }
.broadsheet .col > h3:not(:first-child) { margin-top: 2rem; }

@media (max-width: 980px) {
  .broadsheet { column-count: 2; column-gap: 2.2rem; }
}
@media (max-width: 640px) {
  .broadsheet { column-count: 1; column-rule: none; }
}

/* ---------- listes de prix ---------- */

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.8rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list .item { font-weight: 600; }
.price-list .desc {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.price-list .price {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--secondary);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- étapes ---------- */

.steps { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.steps li { margin-bottom: 0.7rem; font-size: 0.96rem; }
.steps strong { color: var(--ink); }

.plain { margin: 0 0 1.2rem; padding-left: 1.1rem; }
.plain li { margin-bottom: 0.45rem; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- avis ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.quotes blockquote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quotes p {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.quotes cite {
  font-style: normal;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- horaires ---------- */

.hours-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 760px) { .hours-grid { grid-template-columns: 1fr; } }

table.hours {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
table.hours th, table.hours td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.96rem;
}
table.hours th { font-weight: 600; width: 34%; }
table.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
table.hours tr:last-child th, table.hours tr:last-child td { border-bottom: none; }
table.hours tr.closed td { color: var(--ink-faint); font-style: italic; }
table.hours tr.closed th { color: var(--ink-faint); }

.hours-side h3 { margin-top: 0; }

/* ---------- accès ---------- */

.contact-lines { margin-bottom: 1.1rem; }
.contact-lines strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.big-link {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}
.big-link:hover { color: var(--accent); }

/* ---------- bandeau d'appel ---------- */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.cta-band h2 { color: var(--bg); margin-bottom: 0.4rem; }
.cta-band p { color: color-mix(in srgb, var(--bg) 78%, transparent); margin-bottom: 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-band .btn-primary { background: var(--accent); color: #fff8f0; }
.cta-band .btn-primary:hover { background: #e07a52; }

/* ---------- pied de page ---------- */

.site-foot {
  padding-block: clamp(2.2rem, 5vw, 3.4rem) 2rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem 2.5rem;
  margin-bottom: 2rem;
}
.foot-brand { font-size: 1.2rem; margin-bottom: 0.4rem; }
.foot-head {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--accent-deep); }

.claim-wrap { margin: 0 0 1rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}
.claim-banner:hover { color: var(--accent-deep); border-color: var(--accent); }

.attribution {
  font-size: 0.8rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}
.attribution a { color: var(--ink-faint); }

/* ---------- animations ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}

@starting-style {
  .hero-title, .hero-sub, .hero-actions, .hero-facts, .kicker { opacity: 0; }
}

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

@media print {
  .site-head, .glow, .cta-band, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
