/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  line-height: 1.6;
  color: #0b0b0b;
  background: #ffffff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

/* =========================
   VARIABLES
========================= */
:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --yellow: #facc15;

  --muted: rgba(11, 11, 11, 0.7);
  --line: rgba(11, 11, 11, 0.1);

  --radius: 18px;
  --radius-sm: 14px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  --shadow2: 0 28px 90px rgba(0, 0, 0, 0.14);
}

/* éviter que les ancres passent sous le header sticky */
section {
  scroll-margin-top: 90px;
}

/* =========================
   LAYOUT
========================= */
.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: #fafafa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================
   HEADINGS / SECTION HEAD
========================= */
.section__head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section__head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 2.3vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.section__line {
  display: block;
  width: 120px;
  height: 4px;
  margin: 0.85rem auto 0.9rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--yellow),
    transparent
  );
}

/* =========================
   SKIP LINK
========================= */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--yellow);
  color: var(--black);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  opacity: 0;
  transition:
    opacity 0.18s ease,
    left 0.4s ease;
}

.btn:hover::after {
  opacity: 1;
  left: 120%;
}

@media (prefers-reduced-motion: reduce) {
  .btn::after {
    display: none;
  }
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.32);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(250, 204, 21, 0.42);
}

.btn--outline {
  background: var(--yellow);
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(250, 204, 21, 0.32);
}

.btn--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(250, 204, 21, 0.42);
}

.contact-box .btn--outline,
.cookie-banner .btn--outline {
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.16);
  background: #fff;
}

.contact-box .btn--outline:hover,
.cookie-banner .btn--outline:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn--block {
  width: 100%;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text span {
  font-size: 0.86rem;
  color: var(--muted);
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav__list a {
  font-weight: 850;
  color: rgba(11, 11, 11, 0.9);
  position: relative;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
  transition: width 0.18s ease;
}

.nav__list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--black);
  margin: 4px auto;
  border-radius: 2px;
}

.nav--open {
  display: block;
}

/* =========================
   HERO
========================= */
.hero--landscape {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.48) 55%,
      rgba(0, 0, 0, 0.16) 100%
    ),
    url("assets/hero_vehicules.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero__inner {
  position: relative;
  padding: 5.4rem 0;
}

.hero__panel {
  width: min(720px, 100%);
  color: #fff;
}

.kicker {
  margin: 0 0 0.9rem;
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.92);
  color: #0b0b0b;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero__panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 3.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  max-width: 62ch;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.55rem;
}

.pill-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.pill-list i {
  color: var(--yellow);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.tiny {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

/* =========================
   CARDS / GENERIC BLOCKS
========================= */
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before,
.contact-box::before,
.review::before,
.reviews__summary::before,
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.45),
    0 22px 60px rgba(250, 204, 21, 0.18);
  transition: opacity 0.18s ease;
}

.card:hover::before,
.contact-box:hover::before,
.review:hover::before,
.reviews__summary:hover::before,
.service:hover::before {
  opacity: 1;
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card--soft {
  background: #fffdf3;
}

/* =========================
   SERVICES
========================= */
.services {
  display: grid;
  gap: 1.6rem;
}

.service {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  position: relative;
}

.service:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: var(--shadow2);
}

.service__img {
  height: 100%;
  min-height: 340px;
  background: #f3f3f3;
}

.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.service:hover .service__img img {
  transform: scale(1.04);
}

.service__body {
  padding: 2rem;
  display: grid;
  align-content: center;
}

.service__body h3 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.service__body p {
  margin: 0 0 1.1rem;
  color: rgba(11, 11, 11, 0.74);
  font-size: 1.05rem;
}

.link {
  font-weight: 950;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}

.service--reverse {
  grid-template-columns: 1fr 1.15fr;
}

.service--reverse .service__img {
  order: 2;
}

.service--reverse .service__body {
  order: 1;
}

/* =========================
   REVIEWS
========================= */
.reviews {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.reviews__summary {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  position: relative;
}

.rating-big {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.rating-big strong {
  font-size: 2.4rem;
}

.rating-big span {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 800;
}

.stars {
  color: var(--yellow);
}

.stars.small {
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.reviews__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.85) rgba(0, 0, 0, 0.06);
}

.reviews__list::-webkit-scrollbar {
  height: 10px;
}

.reviews__list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.reviews__list::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.85);
  border-radius: 999px;
}

.review {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  min-height: 150px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  position: relative;
}

.review:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: var(--shadow2);
}

.review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.review p {
  margin: 0;
  color: rgba(11, 11, 11, 0.72);
  font-size: 1rem;
}

/* =========================
   FORM
========================= */
.devis-wrap {
  display: flex;
  justify-content: center;
}

.quote-form {
  width: 100%;
  max-width: 980px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-weight: 950;
  color: rgba(11, 11, 11, 0.9);
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  padding: 0.95rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: var(--black);
  font: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.95);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.22);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-hint {
  margin: 0.65rem 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.92rem;
  text-align: center;
}

/* =========================
   GALLERY
========================= */
.gallery--big {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery--big img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.gallery--big img:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: var(--shadow2);
}

/* =========================
   CONTACT
========================= */
.contact-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.contact-box__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.88);
}

.footer__inner {
  padding: 3rem 0 1.6rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 1.25rem;
}

.site-footer h4 {
  margin: 0 0 0.6rem;
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-socials-bottom {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  padding: 1.4rem 0 1rem;
}

.footer-socials-bottom a {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.45);
  color: #fff;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.footer-socials-bottom a:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-5px);
}

.footer-socials-bottom i {
  font-size: 1.45rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.site-footer .muted {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================
   COOKIE BANNER
========================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 16px;
  background: #000;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.cookie-banner p {
  margin: 0 0 0.8rem;
  color: rgba(255, 255, 255, 0.86);
}

.cookie-banner[hidden] {
  display: none !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .grid--2,
  .reviews,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .gallery--big {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .service {
    grid-template-columns: 1fr;
  }

  .service__img {
    min-height: 260px;
  }

  .service__body {
    padding: 1.35rem;
  }

  .service--reverse .service__img,
  .service--reverse .service__body {
    order: initial;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav--open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    padding: 0.95rem 1.25rem 1.2rem;
    gap: 0.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .gallery--big {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding: 4.5rem 0;
  }

  .hero__panel h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .brand__text span {
    display: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1180px, 100% - 1.2rem);
  }

  .section {
    padding: 3.7rem 0;
  }

  .footer-socials-bottom {
    gap: 1rem;
  }

  .footer-socials-bottom a {
    width: 54px;
    height: 54px;
  }
}
