/* Biagi Père et Fils — direction "Devanture Biagi" : noir + rouge de la carte de visite */

:root {
  --black: #0A0A0B;
  --black-2: #141416;
  --panel: #17171A;
  --panel-2: #1E1E22;
  --line: rgba(255,255,255,0.09);
  --text: #F2EFEA;
  --text-muted: #A7ABB2;
  --red: #E4002B;
  --red-2: #FF1F45;
  --red-dark: #B00020;
  --chrome: #C9CDD2;
  --chrome-dark: #7C828A;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 14px;
  --shadow-soft: 0 24px 55px -25px rgba(0,0,0,0.8);
  --shadow-card: 0 14px 34px -18px rgba(0,0,0,0.7);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 0.5em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: inherit; }

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

section[id] { scroll-margin-top: 88px; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 12px 26px -10px rgba(228,0,43,0.6); }
.btn-primary:hover { background: var(--red-2); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.25); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,11,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.brand img { width: 58px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text strong b { color: var(--red); font-weight: inherit; }
.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 82% -10%, rgba(228,0,43,0.22), transparent 60%),
    linear-gradient(180deg, #0E0E10 0%, var(--black) 70%);
}
.hero-road {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-2);
  background: rgba(228,0,43,0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 b { color: var(--red); font-weight: inherit; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 48ch; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  margin: 18px 0 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.rating-badge:hover { transform: translateY(-2px); }
.rating-badge .stars { display: flex; gap: 2px; }
.rating-badge .stars svg { width: 16px; height: 16px; fill: #FFC21E; }
.rating-badge small { color: var(--text-muted); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}
.reassurance span { display: flex; align-items: center; gap: 6px; }
.reassurance svg { width: 16px; height: 16px; fill: var(--red); }

/* ---------- Scene carousel ---------- */
.scene-carousel {
  position: relative;
  aspect-ratio: 4 / 3.3;
  border-radius: 22px;
  background: #0F0F11;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}
.scene.is-active { opacity: 1; visibility: visible; }
.scene svg { width: 100%; height: 100%; }

.scene .anim-wrench,
.scene .anim-wheel,
.scene .anim-drip,
.scene .anim-beacon,
.scene .anim-float { animation-play-state: paused; }

.scene.is-active .anim-wrench { animation: wrenchSwing 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; animation-play-state: running; }
.scene.is-active .anim-wheel { animation: wheelSpin 6s linear infinite; transform-box: fill-box; transform-origin: center; animation-play-state: running; }
.scene.is-active .anim-drip { animation: dripFall 1.8s ease-in infinite; animation-play-state: running; }
.scene.is-active .anim-beacon { animation: beaconBlink 1s steps(2, end) infinite; animation-play-state: running; }
.scene.is-active .anim-float { animation: floatSlow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; animation-play-state: running; }

@keyframes wrenchSwing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes wheelSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dripFall { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateY(34px); opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }
@keyframes beaconBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .scene.is-active .anim-wrench,
  .scene.is-active .anim-wheel,
  .scene.is-active .anim-drip,
  .scene.is-active .anim-beacon,
  .scene.is-active .anim-float { animation: none; }
}

.scene-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.scene-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.scene-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.scene-dots button.is-active { background: var(--red); transform: scale(1.2); }

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { background: rgba(228,0,43,0.14); color: var(--red-2); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

section.light { padding: 96px 0; background: var(--black); }
section.tint { padding: 96px 0; background: var(--black-2); }

/* red vertical divider — motif de la carte */
.road-divider { height: 2px; width: 100%; display: block; background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red) 80%, transparent); opacity: 0.55; }
.road-divider img { display: none; }

/* ---------- Prestations ---------- */
.prestations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.prestation-card {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.prestation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.prestation-card h3 { color: var(--white); }
.prestation-card.feature { background: linear-gradient(180deg, #24070E, var(--panel)); border-left-color: var(--red-2); }
.prestation-card .badge {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.prestation-card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(228,0,43,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.prestation-card .icon svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.8; }
.prestation-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.prestation-card .free-tag { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; color: var(--red-2); text-transform: uppercase; }

/* ---------- Vehicle band ---------- */
.vehicle-band {
  background: var(--red);
  color: var(--white);
  padding: 34px 0;
}
.vehicle-band .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}
.vehicle-band .item { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.vehicle-band svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.7; flex-shrink: 0; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card .stars { display: flex; gap: 2px; }
.review-card .stars svg { width: 15px; height: 15px; fill: #FFC21E; }
.review-card p.quote { font-size: 0.94rem; color: var(--text); flex-grow: 1; margin: 0; }
.review-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); }
.review-meta span:first-child { color: var(--white); font-weight: 600; }
.review-meta .g-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-muted); }
.review-meta .g-badge svg { width: 15px; height: 15px; }

.reviews-cta { text-align: center; margin-top: 40px; }
.reviews-cta a { color: var(--red-2); font-weight: 700; text-decoration: none; }
.reviews-cta a:hover { text-decoration: underline; }

/* ---------- Pourquoi nous ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.why-item { display: flex; gap: 18px; }
.why-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.why-item h3 { color: var(--white); }
.why-item p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Zone ---------- */
.zone-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.zone-map { border-radius: 22px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow-card); border: 1px solid var(--line); padding: 20px; }
.zone-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 24px; padding: 0; }
.zone-list li { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.zone-list svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-block {
  background: linear-gradient(180deg, var(--black-2), #0C0C0E);
  color: var(--text);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-block h2 { color: var(--white); }
.contact-block .lead { color: var(--text-muted); font-size: 1.05rem; max-width: 42ch; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 2px; }
.contact-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red-2); }
.contact-list .muted { color: var(--text-muted); font-weight: 400; }

.hours-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
}
.hours-card h3 { color: var(--white); margin-bottom: 18px; }
.hours-card table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-card td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-muted); }
.hours-card tr:last-child td { border-bottom: none; }
.hours-card td:first-child { font-weight: 600; color: var(--white); }
.hours-card td:last-child { text-align: right; }
.hours-card tr.today td { color: var(--red-2); }
.contact-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #08080A; color: var(--text-muted); padding: 48px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: 42px; object-fit: contain; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--red-2); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--chrome-dark);
}
.footer-bottom a { color: var(--chrome-dark); }
.footer-bottom a:hover { color: var(--red-2); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.6);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn span.full { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .scene-carousel { order: -1; margin-bottom: 12px; }
  .zone-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--black-2);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
  }
}

@media (max-width: 640px) {
  section.light, section.tint { padding: 64px 0; }
  .contact-block { padding: 64px 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .zone-list { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand img { width: 46px; height: 42px; }
  .brand-text strong { font-size: 0.98rem; }
  .brand-text span { display: none; }
  .header-cta .btn-primary { padding: 12px; }
}
