/* ==========================================================================
   KeyLab Auto — Design "Plaque gravée"
   ========================================================================== */

:root {
  --navy: #16283D;
  --navy-hover: #1F3A57;
  --blue: #1E88E5;
  --blue-hover: #2C9CF0;
  --ink: #1F2A33;
  --muted: #4B5560;
  --muted-light: #9FB0C0;
  --border-light: rgba(0, 0, 0, 0.12);
  --border-light-strong: rgba(0, 0, 0, 0.18);
  --radius: 3px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: repeating-linear-gradient(100deg, #DBDEE1 0px, #DBDEE1 2px, #D0D4D7 2px, #D0D4D7 4px);
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

.bezel { background: var(--navy); color: #fff; }

/* -------------------- Header -------------------- */

.header { position: relative; z-index: 2; }

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.header__actions { display: flex; align-items: center; gap: 16px; }

.header__social { display: flex; align-items: center; gap: 6px; }

.header__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.header__social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.header__social-icon svg {
  width: 17px;
  height: 17px;
}

.header__social-icon[aria-label="WhatsApp"] svg { fill: #25D366; }
.header__social-icon[aria-label="Facebook"] svg { fill: #1877F2; }
.header__social-icon[aria-label="Instagram"] svg { fill: #E1306C; }
.header__social-icon[aria-label="TikTok"] svg { fill: #000; }

@media (max-width: 600px) {
  .header__social { display: none; }
}

/* -------------------- Buttons -------------------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--navy-hover); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); }

.btn--solid.btn--dark { background: var(--navy); }

.btn--outline { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn--outline-dark { display: inline-block; font-weight: 600; font-size: 16px; padding: 16px 30px; border-radius: var(--radius); border: 1px solid var(--navy); color: var(--navy); transition: background 0.15s, transform 0.15s; }
.btn--outline-dark:hover { background: rgba(22, 40, 61, 0.06); transform: translateY(-2px); }

/* -------------------- Logo plate -------------------- */

.plate {
  display: inline-block;
  background: #EDEFF0;
  padding: 8px 18px;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.plate__logo { height: 36px; width: auto; object-fit: contain; display: block; }

/* -------------------- Hero -------------------- */

.hero { padding: 72px 0 56px; text-align: center; }

.plate--hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 32px;
  background: linear-gradient(155deg, #E7E9EA, #C7CBCE);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.18);
  padding: 24px 32px;
}

.plate__logo--hero { height: auto; width: 100%; }

.plate--hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 35%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: klaSheen 1.6s ease-out 0.6s 1;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* -------------------- Reveal-on-load animation -------------------- */

@keyframes klaFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes klaSheen { 0% { transform: translateX(-130%) skewX(-12deg); } 100% { transform: translateX(230%) skewX(-12deg); } }

.reveal { animation: klaFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-delay: 0.18s; }
.reveal--3 { animation-delay: 0.3s; }
.reveal--4 { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .plate--hero::after { animation: none !important; display: none; }
  html { scroll-behavior: auto; }
}

/* -------------------- Stats -------------------- */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0;
}

.stat {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:first-child { border-left: none; }

.stat__value { font-family: 'Archivo', sans-serif; font-size: 30px; font-weight: 700; }
.stat__label { font-size: 14px; color: var(--muted-light); margin-top: 6px; }

/* -------------------- Section shared -------------------- */

.services, .why, .faq { padding: 64px 0; }

.services h2, .faq h2, .zones h2 { font-size: 28px; margin-bottom: 8px; }

.section__lead { font-size: 16px; color: var(--muted); margin: 0 0 32px; }
.section__lead--dark { color: var(--muted-light); }

/* -------------------- Services table -------------------- */

.table__head {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  font-size: 13px;
  color: #6B7680;
  border-bottom: 1px solid var(--border-light-strong);
}

.table__code { width: 110px; flex-shrink: 0; }

.table__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.table__row:hover { background: rgba(255, 255, 255, 0.5); }

.table__row .table__code {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
}

.table__row div:last-child { font-size: 15px; color: var(--muted); }
.table__row strong { font-size: 18px; font-weight: 600; color: var(--ink); }

/* -------------------- Why -------------------- */

.why__grid { display: flex; gap: 0; }

.why__item {
  flex: 1;
  padding: 0 28px;
  border-left: 1px solid var(--border-light);
}

.why__item:first-child { padding-left: 0; border-left: none; }

.why__item h3 { font-size: 18px; margin-bottom: 8px; }
.why__item p { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0; }

/* -------------------- Zones -------------------- */

.zones { padding: 56px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}

.zones__detail { font-size: 14px; color: var(--muted-light); max-width: 720px; margin: 0 0 14px; }
.zones__note { font-size: 15px; color: #fff; margin: 0; }

/* -------------------- FAQ -------------------- */

.faq__item { padding: 20px 0; border-bottom: 1px solid var(--border-light); }
.faq__item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.faq__item p { font-size: 15px; color: var(--muted); line-height: 1.55; max-width: 720px; margin: 0; }

/* -------------------- Footer -------------------- */

.footer { padding: 56px 0 0; }

.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }

.footer__brand { max-width: 340px; }

.plate--footer { margin-bottom: 16px; }
.plate__logo--footer { height: 24px; }

.footer__brand p { font-size: 15px; color: var(--muted-light); line-height: 1.6; margin: 0; }

.footer__col h4 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.footer__col p { font-size: 15px; color: var(--muted-light); line-height: 1.9; margin: 0; }

.footer__col a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__col a:hover { color: #fff; }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.15s, background 0.15s;
}

.social-icon:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
}

.social-icon:hover svg { fill: #fff; }

.footer__legal {
  font-size: 13px;
  color: #6B7680;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------- Réassurance -------------------- */

.reassurance {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.reassurance__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.reassurance__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-left: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.reassurance__item:first-child { border-left: none; }

.reassurance__item svg {
  width: 20px;
  height: 20px;
  fill: var(--blue);
  flex-shrink: 0;
}

/* -------------------- Badges services -------------------- */

.badge {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.badge--sos { background: #E53935; color: #fff; }
.badge--ecu { background: var(--navy); color: #fff; }
.badge--cles { background: #1E88E5; color: #fff; }

/* -------------------- Marquee -------------------- */

.marquee {
  overflow: hidden;
  background: var(--navy);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

.marquee__track span[aria-hidden="true"] {
  color: var(--blue);
  font-size: 10px;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* -------------------- FAQ accordéon -------------------- */

.faq__item details { border: none; }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 20px 0;
  gap: 16px;
  user-select: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
}

.faq__item details[open] summary::after { content: '−'; }

.faq__item details p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 20px;
}

/* -------------------- CTA band -------------------- */

.cta-band { padding: 64px 0; }

.cta-band__inner { text-align: center; }

.cta-band h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 17px;
  color: var(--muted-light);
  margin: 0 0 32px;
}

.cta-band__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn--cta { background: var(--blue); }
.btn--cta:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.22); }

/* -------------------- WhatsApp flottant -------------------- */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 2s ease-out 1.5s 2;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}

/* -------------------- Responsive -------------------- */

@media (max-width: 860px) {
  .reassurance__grid { justify-content: flex-start; }
  .reassurance__item { border-left: none; padding: 8px 16px; white-space: normal; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(odd) { border-left: none; }

  .why__grid { flex-direction: column; gap: 24px; }
  .why__item { padding: 0; border-left: none; }

  .footer__grid { flex-direction: column; gap: 28px; }
}

@media (max-width: 600px) {
  .header__row { padding-top: 14px; padding-bottom: 14px; }
  .header__actions .btn--outline { display: none; }

  .hero { padding: 48px 0 40px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn, .hero__cta .btn--outline-dark { width: 100%; text-align: center; }

  .table__head { display: none; }
  .table__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .table__row .table__code { width: auto; }

  .services, .why, .faq, .zones { padding: 44px 0; }
}
