/* ==========================================================
   AK DEPANNAGE - Feuille de style principale
   Mobile-first, aucune police/ressource externe.
   ========================================================== */

:root {
  --jaune: #FFC107;
  --jaune-fonce: #E5A800;
  --anthracite: #1A1A1A;
  --gris-fonce: #2C2C2C;
  --gris: #6B6B6B;
  --gris-clair: #F4F4F4;
  --blanc: #FFFFFF;
  --rouge: #E53935;
  --vert: #2E7D32;
  --radius: 12px;
  --radius-lg: 18px;
  --ombre: 0 4px 14px rgba(0,0,0,.12);
  --ombre-lg: 0 14px 34px rgba(0,0,0,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gris-fonce);
  background: var(--blanc);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--anthracite); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 0; list-style: none; margin: 0; }
:focus-visible { outline: 3px solid var(--jaune-fonce); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--jaune); color: var(--anthracite);
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-align: center; font-size: .95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-cta { background: var(--jaune); color: var(--anthracite); box-shadow: 0 8px 20px rgba(255,193,7,.35); }
.btn-cta:hover { background: var(--jaune-fonce); box-shadow: 0 10px 24px rgba(255,193,7,.45); }
.btn-outline { background: transparent; border-color: var(--anthracite); color: var(--anthracite); }
.btn-outline:hover { background: var(--anthracite); color: var(--blanc); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .8rem; white-space: nowrap; }
.btn-block { width: 100%; }

/* ---------- Topbar + Nav ---------- */
.topbar { background: var(--anthracite); color: var(--blanc); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; gap: 16px; padding: 6px 16px; overflow-x: auto; white-space: nowrap; }
.topbar-link { color: var(--blanc); font-weight: 600; }
.topbar-badge { background: var(--jaune); color: var(--anthracite); padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; }
.topbar-lang { margin-left: auto; border: 1px solid var(--blanc); border-radius: 6px; padding: 2px 8px; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--blanc); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; position: relative; }
.logo img { height: 42px; width: auto; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 200;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--anthracite); border-radius: 3px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh;
  background: var(--blanc); box-shadow: -6px 0 24px rgba(0,0,0,.15);
  display: flex; flex-direction: column; gap: 4px; padding: 90px 24px 24px;
  transition: right .28s ease; z-index: 150; overflow-y: auto;
}
.nav-menu.open { right: 0; }
.nav-menu a { padding: 14px 6px; border-bottom: 1px solid var(--gris-clair); font-weight: 600; }
.nav-cta { margin-top: 16px; text-align: center; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; width: auto; height: auto; box-shadow: none; flex-direction: row;
    align-items: center; padding: 0; gap: 22px; background: transparent;
  }
  .nav-menu a { border-bottom: none; padding: 6px 0; }
  .nav-cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--anthracite) 0%, var(--gris-fonce) 100%); color: var(--blanc); padding: 48px 0; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { color: var(--blanc); }
.hero-subtitle { color: #DADADA; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-badges li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.hero-image img { margin: 0 auto; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- Sections generiques ---------- */
.section { padding: 48px 0; }
.section-intro { color: var(--gris); max-width: 700px; font-size: 1.02rem; }
.trust-section { background: var(--gris-clair); }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.stat-card {
  background: var(--blanc); border-radius: var(--radius); padding: 24px 18px; text-align: center;
  box-shadow: var(--ombre); border-top: 3px solid var(--jaune); transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--ombre-lg); }
.stat-number { display: block; font-size: 2.3rem; font-weight: 800; color: var(--jaune-fonce); letter-spacing: -.02em; }
.stat-label { display: block; font-size: .85rem; color: var(--gris); font-weight: 600; margin-top: 4px; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: 1fr; }
.service-card {
  background: var(--blanc); border: 1px solid #EAEAEA; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--ombre); transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.service-card img { margin-bottom: 12px; }
.service-card p { color: var(--gris); font-size: .95rem; }
.service-link { color: var(--jaune-fonce); font-weight: 700; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Formulaire ---------- */
.demande-section { background: var(--gris-clair); }
.demande-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .demande-grid { grid-template-columns: 1.2fr .8fr; } }

.ak-form { background: var(--blanc); padding: 24px; border-radius: var(--radius); box-shadow: var(--ombre); margin-top: 16px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 2px solid #E2E2E2; border-radius: 8px; font-size: 1rem; font-family: inherit;
  background: var(--blanc); color: var(--anthracite);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--jaune-fonce); }
.input-with-button { display: flex; gap: 8px; flex-wrap: wrap; }
.input-with-button input { flex: 1 1 200px; }
.form-note { font-size: .8rem; color: var(--gris); margin-top: 10px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { padding: 16px 18px; border-radius: 8px; margin-bottom: 18px; }
.alert-success { background: #E8F5E9; border: 1px solid var(--vert); color: #1B5E20; }
.alert-error { background: #FDECEA; border: 1px solid var(--rouge); color: #B71C1C; }

/* ---------- Zones ---------- */
.zones-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.chip { background: var(--blanc); border: 2px solid var(--anthracite); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: transform .15s ease, background-color .15s ease, color .15s ease; display: inline-block; }
.chip:hover { background: var(--anthracite); color: var(--blanc); transform: translateY(-2px); }
.nearby-highways { font-size: .92rem; color: var(--gris); }

/* ---------- Avis ---------- */
.reviews-carousel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-top: 20px; }
.review-card { flex: 0 0 280px; scroll-snap-align: start; background: var(--gris-clair); border-radius: var(--radius); padding: 20px; }
.review-stars { color: var(--jaune-fonce); font-size: 1.1rem; margin-bottom: 8px; }
.review-author { font-weight: 700; color: var(--anthracite); font-size: .88rem; }
.reviews-empty-note { color: var(--gris); font-style: italic; margin-top: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--jaune) 0%, #FFD54A 55%, var(--jaune) 100%); }
.cta-banner-inner { text-align: center; }
.cta-banner h2 { color: var(--anthracite); }
.cta-banner .hero-ctas { justify-content: center; }
.cta-banner .btn-outline { border-color: var(--anthracite); }

/* ---------- Breadcrumb / pages internes ---------- */
.breadcrumb { padding: 14px 16px; font-size: .82rem; color: var(--gris); }
.breadcrumb a { color: var(--gris); text-decoration: underline; }
.page-hero { padding-top: 32px; }
.page-hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .page-hero-grid { grid-template-columns: 1.2fr .8fr; } }

.check-list li { position: relative; padding: 10px 10px 10px 34px; border-bottom: 1px solid var(--gris-clair); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--vert); font-weight: 800; }

.faq-list { max-width: 800px; }
.faq-item { background: var(--gris-clair); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin-top: 10px; color: var(--gris-fonce); }

.legal-content h2 { margin-top: 1.6em; }
.legal-content { max-width: 820px; }

.contact-info-list li { padding: 10px 0; font-size: 1.05rem; border-bottom: 1px solid var(--gris-clair); }

/* ---------- Footer ---------- */
.site-footer { background: var(--anthracite); color: #D9D9D9; padding: 44px 0 0; border-top: 4px solid var(--jaune); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h3 { color: var(--blanc); font-size: 1rem; margin-bottom: 10px; }
.footer-col ul li { padding: 5px 0; }
.footer-col a:hover { color: var(--jaune); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; margin-top: 12px; }
.footer-badges span { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 999px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding: 16px; text-align: center; font-size: .8rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--anthracite); color: var(--blanc); z-index: 300; box-shadow: 0 -4px 18px rgba(0,0,0,.3); }
.cookie-banner-inner { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; font-size: .85rem; flex: 1 1 320px; }
.cookie-banner a { text-decoration: underline; color: var(--jaune); }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Boutons flottants mobile ---------- */
.floating-call, .floating-whatsapp {
  position: fixed; right: 16px; z-index: 250; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: var(--ombre);
}
.floating-call { bottom: 84px; background: var(--jaune); }
.floating-whatsapp { bottom: 18px; background: #25D366; color: var(--blanc); }
@media (min-width: 960px) { .floating-call, .floating-whatsapp { display: none; } }

/* ---------- Bouton SOS (position + telephone en 1 clic) ---------- */
.sos-button {
  position: fixed; left: 16px; bottom: 90px; z-index: 260;
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--rouge); color: var(--blanc); font-weight: 800; font-size: .82rem;
  letter-spacing: .5px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(229,57,53,.5);
}
.sos-button-pulse {
  position: absolute; inset: 0; border-radius: 50%; background: var(--rouge);
  animation: sosPulse 1.8s ease-out infinite;
}
.sos-button-label { position: relative; z-index: 1; }
@keyframes sosPulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sos-button-pulse { animation: none; } }

.sos-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 270;
}
.sos-panel {
  position: fixed; z-index: 280; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  background: var(--blanc); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.35);
}
.sos-panel-inner { position: relative; padding: 26px 22px 28px; max-width: 480px; margin: 0 auto; }
.sos-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--gris-clair); font-size: 1.1rem; cursor: pointer;
}
.sos-panel h2 { font-size: 1.2rem; margin-bottom: 6px; padding-right: 30px; }
.sos-panel-intro { color: var(--gris); font-size: .92rem; margin-bottom: 14px; }
.sos-status { font-weight: 700; background: var(--gris-clair); border-radius: var(--radius); padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }
.sos-result { margin-top: 14px; padding: 14px; border-radius: var(--radius); font-weight: 600; }
.sos-result-ok { background: #E8F5E9; border: 1px solid var(--vert); color: #1B5E20; }
.sos-result-error { background: #FDECEA; border: 1px solid var(--rouge); color: #B71C1C; }
.sos-fallback { margin-top: 16px; font-size: .88rem; color: var(--gris); text-align: center; }
@media (min-width: 640px) {
  .sos-panel { left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); border-radius: 18px; width: 460px; }
}

/* ---------- Galerie photos "en intervention" ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
.gallery-grid figure { margin: 0; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); background: var(--anthracite); transition: box-shadow .18s ease; }
.gallery-item:hover { box-shadow: var(--ombre-lg); }
.gallery-item img { display: block; width: 100%; height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0));
  color: var(--blanc); font-size: .88rem; font-weight: 600;
}

.service-extra-photo img {
  display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--ombre);
}

/* ---------- Pages Services : identite visuelle propre a chaque service ---------- */
.service-hero {
  background: var(--gris-clair);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, white) 0%, var(--blanc) 65%);
  border-bottom: 4px solid var(--accent);
  padding-top: 36px;
}
.service-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem;
  font-weight: 800; color: var(--accent); background: var(--gris-clair);
  background: color-mix(in srgb, var(--accent) 16%, white);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.service-icon-badge {
  width: 190px; height: 190px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center;
  justify-content: center; background: var(--blanc); border: 4px solid var(--accent); box-shadow: var(--ombre-lg);
}
.service-btn-outline { border-color: var(--accent); color: var(--accent); }
.service-btn-outline:hover { background: var(--accent); color: var(--blanc); }
.service-check-list li::before { color: var(--accent); }
.service-extra-photo { position: relative; }
.service-page .service-extra-photo img { border-top: 4px solid var(--accent); }

/* ---------- Carte interactive des zones (legere, sans librairie) ---------- */
.zone-map {
  position: relative; width: 100%; aspect-ratio: 16 / 11; max-height: 620px;
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 24px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 40px),
    linear-gradient(160deg, var(--anthracite) 0%, var(--gris-fonce) 100%);
  box-shadow: var(--ombre-lg);
}
.zone-map-hub, .zone-map-dot { position: absolute; transform: translate(-50%, -50%); }
.zone-map-hub { z-index: 5; display: flex; flex-direction: column; align-items: center; }
.zone-map-hub-dot { position: relative; z-index: 1; font-size: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.zone-map-hub-pulse {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: var(--jaune); opacity: .5; animation: sosPulse 1.8s ease-out infinite;
}
.zone-map-hub-label {
  margin-top: 2px; font-size: .68rem; font-weight: 800; color: var(--anthracite); background: var(--jaune);
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.zone-map-dot { cursor: pointer; padding: 6px; }
.zone-map-dot-point {
  display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--jaune);
  border: 1.5px solid rgba(0,0,0,.4); transition: transform .15s ease, background-color .15s ease;
}
.zone-map-dot-label {
  position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%);
  background: var(--blanc); color: var(--anthracite); font-size: .72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .12s ease; box-shadow: var(--ombre);
}
.zone-map-dot:hover .zone-map-dot-point, .zone-map-dot:focus-visible .zone-map-dot-point {
  transform: scale(1.6); background: var(--blanc);
}
.zone-map-dot:hover .zone-map-dot-label, .zone-map-dot:focus-visible .zone-map-dot-label { opacity: 1; }
.zone-map-truck {
  position: absolute; z-index: 10; font-size: 1.3rem; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%); transition: left .8s cubic-bezier(.4,0,.2,1), top .8s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.6));
}
.zone-map-truck.is-visible { opacity: 1; }
.zone-map-hint { color: var(--gris); font-size: .82rem; margin-top: 10px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .zone-map-truck { transition: opacity .2s ease; }
  .zone-map-hub-pulse { animation: none; }
}
