/* ============================================================
   Mondial Pneu — Dakar
   Composition: warm earth editorial / broadsheet / one-shot load
   ============================================================ */

:root {
  --bg: #f5efe4;
  --bg-deep: #ece2d1;
  --paper: #fbf7ef;
  --ink: #2b1e14;
  --ink-soft: #5a4636;
  --ink-faint: #8a7461;
  --accent: #c25a37;
  --accent-deep: #9c4325;
  --secondary: #6a7a4a;
  --rule: #d8c9b2;
  --warm-light: rgba(226, 168, 108, 0.42);
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 12px 32px -18px rgba(43, 30, 20, 0.35);
  --glow-y: 18%;
  --maxw: 1180px;
  --step: clamp(1.1rem, 0.6rem + 1.6vw, 1.9rem);
}

html[data-theme="dark"] {
  --bg: #1a1310;
  --bg-deep: #221a15;
  --paper: #241b15;
  --ink: #f2e8db;
  --ink-soft: #cbb9a5;
  --ink-faint: #9c8874;
  --accent: #e0784f;
  --accent-deep: #f0936b;
  --secondary: #9aab72;
  --rule: #3b2d23;
  --warm-light: rgba(200, 120, 60, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -20px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: pretty;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- soft light source that drifts with scroll --- */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 46vw at 50% var(--glow-y),
    var(--warm-light) 0%,
    rgba(226, 168, 108, 0.14) 38%,
    transparent 68%
  );
  transition: background 0.25s linear;
}

body > * { position: relative; z-index: 1; }

/* --- paper grain, very subtle --- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(43, 30, 20, 0.055) 1px, transparent 1px);
  background-size: 4px 4px;
}
html[data-theme="dark"] body::after { opacity: 0.18; }

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

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

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

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

/* ============================ HEADER ============================ */

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: 68px;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  background: var(--accent);
  color: #fff8ee;
  border-color: var(--accent-deep);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff8ee;
  border-color: var(--accent-deep);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff8ee; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

.theme-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ============================ HERO ============================ */

.hero {
  padding-block: clamp(2.6rem, 7vw, 5rem) clamp(1.6rem, 4vw, 2.6rem);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
  font-weight: 600;
  animation: fade-up 0.8s 0.12s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

.hero h1 {
  font-family: "Fraunces", "Cormorant Garamond", serif;
  font-weight: 700;
  font-variation-settings: "SOFT" 20, "WONK" 1;
  font-size: clamp(2.15rem, 1.1rem + 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  animation: fade-up 0.9s 0.24s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

/* signature: the headline swaps phrase on hover */
.swap {
  position: relative;
  display: inline-block;
  cursor: default;
}
.swap .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  transition: opacity 0.35s ease;
  pointer-events: none;
  white-space: nowrap;
}
.swap .default { transition: opacity 0.35s ease; }
.swap:hover .default,
.swap:focus-within .default { opacity: 0; }
.swap:hover .alt,
.swap:focus-within .alt { opacity: 1; }

.hero-lede {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 1.7rem;
  animation: fade-up 0.9s 0.36s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  animation: fade-up 0.9s 0.48s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

.hero-note {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin: 0.9rem 0 0;
  animation: fade-up 0.9s 0.6s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

.hero-figure {
  margin: clamp(2rem, 5vw, 3.2rem) 0 0;
  animation: fade-up 1s 0.5s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}
.hero-figure img {
  width: 100%;
  height: clamp(230px, 42vw, 460px);
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ============================ TICKER STRIP ============================ */

.strip {
  border-block: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  padding-block: 0.85rem;
  overflow: hidden;
}
.strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strip li { display: flex; align-items: center; gap: 0.55rem; }
.strip li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex: none;
}

/* ============================ SECTIONS ============================ */

section { padding-block: clamp(2.6rem, 6vw, 4.4rem); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.7rem;
  margin-bottom: 1.8rem;
}
.section-head h2 {
  font-family: "Fraunces", "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.section-head .kicker {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- broadsheet columns --- */
.broadsheet {
  column-count: 1;
  column-gap: 2.4rem;
}
@media (min-width: 700px) { .broadsheet { column-count: 2; } }
@media (min-width: 1000px) { .broadsheet { column-count: 3; column-gap: 3rem; } }

.broadsheet > * { break-inside: avoid; }

.broadsheet p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.broadsheet p:first-of-type::first-letter {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 3.1em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
}
.broadsheet h3 {
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  margin: 1.4rem 0 0.5rem;
  letter-spacing: -0.01em;
}
.broadsheet h3:first-child { margin-top: 0; }

.pull {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1.4rem 0;
  font-family: "Fraunces", serif;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink);
}

/* ============================ SERVICES ============================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1.4rem;
}

.service {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.service img {
  width: 100%;
  height: 176px;
  object-fit: cover;
}
.service-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.service h3 {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.015em;
}
.service p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex: 1;
}
.service .meta {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
}

/* ============================ ZONES ============================ */

.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zones li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.zones li span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: auto;
  white-space: nowrap;
}

/* ============================ HOURS + CONTACT ============================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.15fr 0.85fr; }
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
}
.hours li.today {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  margin-inline: -0.7rem;
  padding-inline: 0.7rem;
  border-radius: 3px;
}
.hours .day { color: var(--ink); font-weight: 500; }
.hours .time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours li.today .day::after {
  content: "aujourd'hui";
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-left: 0.6rem;
  vertical-align: 1px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}
.contact-list { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.contact-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}
.phone-big {
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.phone-big:hover { color: var(--accent); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.notice {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}

/* ============================ FOOTER ============================ */

.site-footer {
  border-top: 2px solid var(--ink);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: 2.2rem 1.6rem;
  background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.footer-grid h4 {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}
.footer-grid p,
.footer-grid li { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.35rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-deep); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--secondary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--secondary) 34%, transparent);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  margin-bottom: 0.9rem;
}
.claim-banner:hover { color: var(--ink); border-color: var(--secondary); }

.attribution a { color: var(--ink-faint); text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ============================ MOTION ============================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(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;
  }
  .swap .alt { display: none; }
  .swap:hover .default { opacity: 1; }
}

@media (max-width: 620px) {
  .nav { display: none; }
  .header-inner { min-height: 62px; }
  .strip ul { justify-content: flex-start; font-size: 0.74rem; }
}
