/* City Depanneur — restored theme.
   Tokens taken from the original site's inline <style> block, which overrode
   the eFuel theme bundle. Do not take fonts from the bundle: it declares
   Pridi/Domine, which the site overrode to Open Sans. */
:root {
  --cd-green: #5CAD2F;
  --cd-green-light: #7ACB4D;
  --cd-black: #242430;
  --cd-gray: #EAEFE8;
  --cd-white: #FFFFFF;
  --cd-text: #444;
  --cd-muted: #f7f7f7;
  --cd-font: 'Open Sans', -apple-system, Segoe UI, Roboto, sans-serif;
  --cd-font-accent: 'Share Tech Mono', ui-monospace, monospace;
  --cd-max: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--cd-font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cd-text);
  background: var(--cd-white);
}
img { max-width: 100%; height: auto; }
a { color: var(--cd-green); text-decoration: none; }
a:hover { color: var(--cd-green-light); }

h1, h2, h3, h4 {
  font-family: var(--cd-font);
  font-weight: 300;
  color: var(--cd-black);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; font-weight: 700; }
h2 strong, h1 strong, .cd-accent { color: var(--cd-green); font-weight: 700; }

.cd-container { max-width: var(--cd-max); margin: 0 auto; padding: 0 15px; }
.cd-section { padding: 70px 0; }
.cd-section--gray { background: var(--cd-gray); }
.cd-section--muted { background: var(--cd-muted); }
.cd-section--dark { background: var(--cd-black); color: rgba(255,255,255,.75); }
.cd-section--dark h2, .cd-section--dark h3 { color: var(--cd-white); }
.cd-center { text-align: center; }

/* Buttons */
.cd-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  background: var(--cd-green);
  color: var(--cd-white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s ease;
}
.cd-btn:hover { background: var(--cd-green-light); color: var(--cd-white); }

/* Top bar */
.cd-topbar {
  background: var(--cd-black);
  color: rgba(255,255,255,.7);
  font-size: 13px;
  padding: 8px 0;
}
.cd-topbar a { color: rgba(255,255,255,.7); }
.cd-topbar a:hover { color: var(--cd-green-light); }
.cd-topbar__inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Header */
.cd-header { background: var(--cd-white); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cd-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 15px; max-width: var(--cd-max); margin: 0 auto;
}
.cd-logo img { max-height: 46px; width: auto; display: block; }

.cd-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.cd-nav a {
  color: var(--cd-black); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}
.cd-nav a:hover { color: var(--cd-green); }
.cd-nav li { position: relative; }

/* Dropdowns (Services, Zone) */
.cd-nav li > ul {
  display: none; position: absolute; left: 0; top: 100%; z-index: 40;
  min-width: 270px; flex-direction: column; gap: 0;
  background: var(--cd-white); box-shadow: 0 6px 18px rgba(0,0,0,.13);
  padding: 8px 0;
}
.cd-nav li:hover > ul { display: flex; }
.cd-nav li > ul a {
  display: block; padding: 9px 18px; text-transform: none;
  font-weight: 300; font-size: 14px;
}
.cd-nav li > ul a:hover { background: var(--cd-gray); }
.cd-nav__toggle { display: none; }
/* Visually hidden but still focusable and in the a11y tree, so the mobile
   menu can be opened by keyboard. Do NOT use [hidden] or display:none here:
   both remove the checkbox from the tab order. */
.cd-nav__check {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
/* Keyboard users must get the same dropdown that :hover gives mouse users. */
.cd-nav li:focus-within > ul { display: flex; }
/* Make the focused hamburger visible when it receives focus. */
.cd-nav__check:focus-visible ~ .cd-nav__toggle { outline: 2px solid var(--cd-green); outline-offset: 2px; }

.cd-hero {
  position: relative; overflow: hidden;
  min-height: 460px;
  background: url('/storage/citydepanneur/sky.jpg') center/cover no-repeat;
}
.cd-hero__city, .cd-hero__road, .cd-hero__truck { position: absolute; }
.cd-hero__city { bottom: 92px; left: 0; width: 100%; opacity: .9; }
.cd-hero__road { bottom: 0; left: 0; width: 100%; }
.cd-hero__truck { bottom: 34px; right: 4%; width: 46%; max-width: 560px; }
.cd-hero__truck img.cd-hero__body { display: block; width: 100%; }
.cd-hero__wheel { position: absolute; width: 13.2%; animation: cd-spin 1.1s linear infinite; }
.cd-hero__wheel--front { bottom: 1%; right: 12.5%; }
.cd-hero__wheel--back  { bottom: 1%; left: 17%; }
@keyframes cd-spin { to { transform: rotate(360deg); } }

.cd-hero__inner { position: relative; z-index: 3; padding: 90px 0 150px; }
.cd-hero h1 { font-size: 44px; margin-bottom: 22px; }
.cd-hero h1 .cd-accent { display: block; }

/* Respect the OS setting: stop the wheels, keep the scene. */
@media (prefers-reduced-motion: reduce) {
  .cd-hero__wheel { animation: none; }
}

/* Trust bar under the hero */
.cd-trustbar { display: flex; flex-wrap: wrap; margin-top: -46px; position: relative; z-index: 5; }
.cd-trustbar__item {
  flex: 1 1 33%; display: flex; align-items: center; gap: 14px;
  padding: 22px 26px; background: var(--cd-black); color: var(--cd-white);
  font-size: 14px;
}
.cd-trustbar__item--accent { background: var(--cd-green); }
.cd-trustbar__item strong { display: block; font-size: 17px; }

/* Icon cards ("Pourquoi nous choisir ?") */
.cd-grid { display: grid; gap: 24px; }
.cd-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cd-grid--2 { grid-template-columns: repeat(2, 1fr); }

.cd-card { background: rgba(255,255,255,.04); padding: 30px 24px; border-radius: 4px; text-align: center; }
.cd-card__icon { color: var(--cd-green); margin-bottom: 14px; }
.cd-card__icon svg { width: 42px; height: 42px; }
.cd-card h3 { font-size: 16px; margin-bottom: 10px; }
.cd-card p { font-size: 13.5px; margin: 0; }

/* Service cards, light */
.cd-service {
  background: var(--cd-white); border-radius: 6px; padding: 26px 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.cd-service h3 { color: var(--cd-black); }
.cd-service ul { list-style: none; margin: 0; padding: 0; }
.cd-service li { padding: 5px 0 5px 16px; position: relative; font-size: 13.5px; }
.cd-service li::before { content: '›'; position: absolute; left: 0; color: var(--cd-green); }

/* Checklist columns */
.cd-checklist { list-style: none; margin: 0; padding: 0; }
.cd-checklist li { padding: 6px 0 6px 18px; position: relative; }
.cd-checklist li::before { content: '›'; position: absolute; left: 0; color: var(--cd-green); font-weight: 700; }

/* 3 steps */
.cd-step { text-align: center; }
.cd-step__num {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--cd-gray); color: var(--cd-green);
  display: flex; align-items: center; justify-content: center;
}
.cd-step__num svg { width: 34px; height: 34px; }

/* Zones grid */
.cd-zones { columns: 5; column-gap: 26px; font-size: 13px; }
.cd-zones a { display: block; padding: 4px 0; color: var(--cd-green); }
.cd-zones a:hover { color: var(--cd-black); }

/* Footer */
.cd-footer {
  background: var(--cd-black) url('/storage/citydepanneur/footer-bg.png') center/cover no-repeat;
  color: rgba(255,255,255,.7); padding: 55px 0 30px; text-align: center;
}
.cd-footer img { max-height: 60px; margin-bottom: 24px; }
.cd-footer input, .cd-footer textarea {
  width: 100%; max-width: 420px; margin: 0 auto 12px; display: block;
  padding: 12px 14px; border: 0; border-radius: 3px;
  background: rgba(255,255,255,.9); font-family: var(--cd-font); font-size: 14px;
}
.cd-footer textarea { min-height: 110px; resize: vertical; }
.cd-copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: 12.5px; }

/* Contact bar */
.cd-contactbar { display: flex; flex-wrap: wrap; }
.cd-contactbar__item {
  flex: 1 1 25%; display: flex; align-items: center; gap: 12px;
  padding: 20px 24px; background: var(--cd-green); color: var(--cd-white); font-size: 13.5px;
}
.cd-contactbar__item + .cd-contactbar__item { border-left: 1px solid rgba(255,255,255,.25); }

@media (max-width: 1199px) { .cd-zones { columns: 4; } }
@media (max-width: 991px) {
  .cd-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cd-zones { columns: 3; }
  .cd-hero__truck { width: 56%; }
  h1, .cd-hero h1 { font-size: 34px; }
  h2 { font-size: 27px; }
}
@media (max-width: 767px) {
  .cd-section { padding: 45px 0; }
  .cd-grid--4, .cd-grid--3, .cd-grid--2 { grid-template-columns: 1fr; }
  .cd-zones { columns: 2; }
  .cd-trustbar__item, .cd-contactbar__item { flex: 1 1 100%; }
  .cd-trustbar { margin-top: 0; }
  .cd-hero { min-height: 380px; }
  .cd-hero__truck { position: static; width: 86%; margin: 20px auto 0; }
  .cd-hero__wheel { display: none; }
  .cd-hero__inner { padding: 50px 0 30px; }

  /* Mobile nav: toggle without JS */
  .cd-nav__toggle {
    display: block; background: none; border: 0; font-size: 26px;
    color: var(--cd-black); cursor: pointer; line-height: 1;
  }
  .cd-nav ul { display: none; flex-direction: column; gap: 0; width: 100%; }
  .cd-nav__check:checked ~ ul { display: flex; }
  .cd-nav li > ul { position: static; box-shadow: none; min-width: 0; padding-left: 14px; }
  .cd-nav li:hover > ul, .cd-nav li:focus-within > ul { display: none; }
  .cd-header__inner { flex-wrap: wrap; }
}
@media (max-width: 479px) { .cd-zones { columns: 1; } }

/* Relaunch additions: callback form, legal links, mobile call bar */
.cd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cd-form__title { color: var(--cd-white); font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.cd-form__note { font-size: 12px; margin: 10px auto 0; max-width: 420px; }
.cd-form__note a, .cd-footer__links a { color: rgba(255,255,255,.85); text-decoration: underline; }
.cd-form__error { color: #FFD2C7; margin: 0 auto 12px; max-width: 420px; }
.cd-form__ok { color: var(--cd-white); font-weight: 500; font-size: 16px; margin: 0 auto 10px; max-width: 420px; }
.cd-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: 13px; }
.cd-contactbar__item a { color: var(--cd-white); }
.cd-topbar span { color: rgba(255,255,255,.7); }

.cd-callbar { display: none; }
@media (max-width: 767px) {
  .cd-callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(0,0,0,.18);
  }
  .cd-callbar a {
    flex: 1 1 0; text-align: center; padding: 15px 8px; font-weight: 700; font-size: 15px;
    color: var(--cd-white); background: var(--cd-black);
  }
  .cd-callbar a.cd-callbar__call { background: var(--cd-green); flex-grow: 1.4; }
  .cd-callbar a.cd-callbar__wa { background: #1F8F4E; }
  body { padding-bottom: 56px; }
}

/* Blog index cards (light ground) */
.cd-articles { margin-top: 28px; }
.cd-articles .cd-card { background: var(--cd-gray); text-align: left; padding: 0 0 22px; overflow: hidden; }
.cd-articles .cd-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; }
.cd-articles .cd-card__title { font-size: 18px; line-height: 1.35; margin: 0 20px 8px; }
.cd-articles .cd-card__title a { color: var(--cd-black); }
.cd-articles .cd-card p { margin: 0 20px; color: var(--cd-text); }

/* Hero copy stays clear of the truck on wide screens */
@media (min-width: 768px) {
  .cd-hero__inner h1, .cd-hero__inner p { max-width: 50%; }
}

/* Cookie banner (public/js/consent.js). Refuse and accept look the same, as the CNIL requires. */
.cd-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--cd-white); color: var(--cd-text); font-size: 14px; line-height: 1.5;
  box-shadow: 0 -4px 18px rgba(0,0,0,.18); border-top: 3px solid var(--cd-green);
}
.cd-consent[hidden] { display: none; }
.cd-consent__inner { max-width: var(--cd-max); margin: 0 auto; padding: 16px 15px; }
.cd-consent__text { margin: 0 0 12px; }
.cd-consent__text a { text-decoration: underline; }
.cd-consent__choices { display: grid; gap: 8px; margin: 0 0 12px; }
.cd-consent__choices[hidden], .cd-consent__btn[hidden] { display: none; }
.cd-consent__choices label { display: block; cursor: pointer; }
.cd-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.cd-consent__btn {
  font: inherit; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
  padding: 11px 22px; border-radius: 3px; border: 2px solid var(--cd-black);
  background: var(--cd-black); color: var(--cd-white); cursor: pointer;
}
.cd-consent__btn:hover { background: var(--cd-green); border-color: var(--cd-green); }
.cd-consent__btn:focus-visible { outline: 2px solid var(--cd-green); outline-offset: 2px; }
.cd-consent__btn--link { background: transparent; color: var(--cd-black); border-color: transparent; text-decoration: underline; }
.cd-consent__btn--link:hover { background: transparent; border-color: transparent; color: var(--cd-green); }
@media (max-width: 767px) {
  /* Sits above the call bar: calling must stay one tap away. */
  .cd-consent { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); max-height: 70vh; overflow-y: auto; }
  .cd-consent__actions { justify-content: stretch; }
  .cd-consent__actions .cd-consent__btn:not(.cd-consent__btn--link) { flex: 1 1 40%; }
  .cd-consent__btn--link { order: 3; flex: 1 1 100%; }
}
