@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;1,700;1,800;1,900&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #1a1a1a;
  --bg2: #242424;
  --bg3: #2d2d2d;
  --cyan: #00a8e8;
  --cyan-dark: #0089c0;
  --red: #e63939;
  --white: #fff;
  --gray: #aaa;
  --border: rgba(255,255,255,.1);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background: var(--bg); color: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── NAVBAR ─── */
.navbar {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav-logo span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--white);
  border-radius: 4px;
  white-space: nowrap;
  transition: .2s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  background: var(--cyan);
  color: var(--white);
}
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s;
  z-index: 10;
}
.nav-links li:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 16px; font-size: .84rem; color: var(--gray); border-bottom: 1px solid var(--border); }
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--cyan); background: rgba(0,168,232,.08); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); display: block; transition: .3s; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: none;
  font-family: 'Open Sans', sans-serif;
  transition: .22s;
  text-decoration: none;
}
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: var(--cyan-dark); transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #c22; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: .35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,.95) 40%, rgba(10,10,10,.2));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 780px;
}
.hero h1 {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 15px;
}
.hero h1 span { color: var(--red); }
.hero p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; max-width: 600px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── TRUST BADGES ─── */
.trust-bar {
  background: var(--bg2);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.trust-item {
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 1.8rem; }
.trust-title { font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--white); }
.trust-sub { font-size: 0.75rem; color: var(--gray); line-height: 1.3; }

/* ─── SERVICE SECTIONS (alternées image + texte) ─── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  border-bottom: 1px solid var(--border);
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-img {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.service-block:hover .service-block-img img { transform: scale(1.03); }
.service-block-body {
  padding: 22px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.service-block-body h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--white);
}
.service-block-body p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; margin-bottom: 10px; }
.service-block-body p strong { color: var(--white); }
.service-block-body p a { color: var(--cyan); text-decoration: underline; }

/* ─── ABOUT SECTION ─── */
.about-section {
  position: relative;
  padding: 28px 36px;
  background: var(--bg2);
  overflow: hidden;
}
.about-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/mecanique-hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: .12;
}
.about-content { position: relative; z-index: 2; max-width: 900px; }
.about-content h2 {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 12px;
}
.about-content p { color: var(--gray); line-height: 1.6; margin-bottom: 10px; font-size: 0.88rem; }
.team-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 15px 0; }
.team-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.team-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.award-badge {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ff8c00, #e63939);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 12px;
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.2;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(255,140,0,.2);
}

/* ─── ZONE D'INTERVENTION ─── */
.zone-section { padding: 28px 36px; background: var(--bg3); text-align: center; }
.zone-section h2 { font-family:'Barlow',sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.zone-section p { color: var(--gray); margin-bottom: 20px; font-size: 0.88rem; }
.zone-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto; }
.zone-city {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zone-city::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.map-placeholder {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg2);
  border-radius: 12px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
}
.map-placeholder p { color: var(--gray); }

/* ─── AVIS / REVIEWS ─── */
.reviews-section { padding: 28px 36px; background: var(--bg); }
.reviews-section h2 { font-family: 'Barlow', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; text-align: center; }
.reviews-sub { color: var(--gray); text-align: center; margin-bottom: 16px; font-size: 0.88rem; }
.tp-score-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.tp-number { font-family: 'Barlow', sans-serif; font-size: 3.5rem; font-weight: 900; line-height: 1; }
.tp-stars-row { display: flex; gap: 4px; }
.tp-star { width: 24px; height: 24px; background: #00b67a; border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; }
.tp-info { font-size: 0.78rem; color: var(--gray); }
.tp-excellent { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,182,122,.12); border: 1px solid #00b67a; color: #00b67a; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; justify-content: center; }
.filter-tab { padding: 6px 14px; border-radius: 50px; border: 1.5px solid var(--border); background: transparent; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: 'Open Sans', sans-serif; transition: .2s; color: var(--gray); }
.filter-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.filter-tab.active { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.review-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 18px; transition: .3s; }
.review-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.rev-stars { display: flex; gap: 3px; margin-bottom: 8px; }
.rev-star { width: 16px; height: 16px; background: #00b67a; border-radius: 2px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.6rem; }
.rev-star.empty { background: var(--bg3); }
.rev-text { font-size: 0.82rem; color: var(--gray); line-height: 1.5; font-style: italic; margin-bottom: 12px; }
.rev-author { display: flex; align-items: center; gap: 10px; }
.rev-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan-dark); color: #fff; font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rev-name { font-weight: 700; font-size: 0.8rem; }
.rev-date { font-size: 0.7rem; color: var(--gray); }
.rev-lang { margin-left: auto; font-size: 0.68rem; background: var(--bg3); padding: 2px 6px; border-radius: 20px; color: var(--gray); }

/* ─── CONTACT / FORM ─── */
.contact-section { padding: 28px 36px; background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 36px; align-items: start; }
.contact-info h2 { font-family: 'Barlow', sans-serif; font-style: italic; font-size: 1.8rem; font-weight: 800; margin-bottom: 18px; }
.info-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.info-card-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: 4px; }
.info-card-val { font-size: 0.88rem; font-weight: 600; }
.info-card-val a { color: var(--white); }
.info-card-val a:hover { color: var(--cyan); }
.form-box { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-box h3 { font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.86rem;
  font-family: 'Open Sans', sans-serif;
  transition: .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #666; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,168,232,.15);
}
.form-group select option { background: var(--bg2); }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; color: var(--gray); margin-bottom: 12px; }
.form-check input { accent-color: var(--cyan); margin-top: 2px; flex-shrink: 0; }
.form-check a { color: var(--cyan); }
.success-box { display: none; background: rgba(0,182,122,.12); border: 1px solid #00b67a; border-radius: 8px; padding: 10px 14px; color: #00b67a; font-size: 0.84rem; margin-top: 10px; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--bg2);
  padding: 22px 36px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(0,168,232,.06);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--gray); margin-bottom: 8px; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb .sep { color: var(--border); }
.page-hero h1 {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 6px;
}
.page-hero h1 span { color: var(--red); }
.page-hero p { color: var(--gray); font-size: 0.88rem; }

/* ─── CONTENT PAGE ─── */
.content-wrap { max-width: 900px; margin: 0 auto; padding: 22px 28px; }
.content-wrap h2 { font-family: 'Barlow', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 24px 0 10px; }
.content-wrap h3 { font-size: 1rem; font-weight: 700; color: var(--cyan); margin: 16px 0 6px; }
.content-wrap p { color: var(--gray); line-height: 1.6; margin-bottom: 10px; font-size: 0.88rem; }
.content-wrap ul { padding-left: 18px; margin-bottom: 10px; }
.content-wrap ul li { color: var(--gray); line-height: 1.6; margin-bottom: 4px; font-size: 0.88rem; }
.content-wrap ul li::marker { color: var(--cyan); }
.callout { background: var(--bg3); border-left: 4px solid var(--cyan); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 16px 0; }
.callout p { color: var(--white); margin: 0; font-size: 0.86rem; }
.service-img-block { border-radius: 10px; overflow: hidden; margin: 18px 0; }
.service-img-block img { width: 100%; object-fit: cover; max-height: 320px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.two-col-card { background: var(--bg3); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.two-col-card img { width: 100%; height: 160px; object-fit: cover; }
.two-col-card-body { padding: 12px; }
.two-col-card-body h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.two-col-card-body p { font-size: 0.8rem; color: var(--gray); margin: 0; }

/* ─── CTA BANNER ─── */
.cta-banner { background: var(--cyan); padding: 22px 36px; text-align: center; }
.cta-banner h2 { font-family: 'Barlow', sans-serif; font-style: italic; font-weight: 900; font-size: 1.8rem; margin-bottom: 6px; }
.cta-banner p { opacity: .85; margin-bottom: 18px; font-size: 0.9rem; }
.btn-white { background: var(--white); color: var(--cyan); font-weight: 700; }
.btn-white:hover { background: #e8f8ff; box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ─── FOOTER ─── */
footer { background: #111; border-top: 1px solid var(--border); padding: 24px 36px 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-logo { font-family: 'Barlow', sans-serif; font-style: italic; font-weight: 900; font-size: 1.3rem; color: var(--white); display: block; margin-bottom: 8px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray); margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 0.8rem; color: rgba(255,255,255,.5); transition: .2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.35); margin-left: 12px; }
.footer-bottom a:hover { color: var(--cyan); }

/* ─── FLOATING CTA ─── */
.float-cta { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.float-btn { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 50px; font-weight: 700; font-size: .82rem; box-shadow: 0 4px 20px rgba(0,0,0,.4); transition: .25s; text-decoration: none; border: none; cursor: pointer; font-family: 'Open Sans', sans-serif; }
.float-btn:hover { transform: translateY(-3px); }
.float-email { background: var(--cyan); color: #fff; }

/* ─── RESPONSIVE ─── */
@media(max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg2);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    gap: 4px;
  }
  .nav-links.open .dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; background: transparent; padding: 4px 0 4px 16px; }
  .service-block, .service-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .service-block.reverse .service-block-img { order: -1; }
  .service-block-body { padding: 36px 28px; }
  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .about-section { padding: 48px 28px; }
  .award-badge { display: none; }
  .zone-section { padding: 48px 24px; }
  .zone-cities { grid-template-columns: 1fr 1fr; }
  .reviews-section { padding: 48px 24px; }
  .contact-section { padding: 48px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .content-wrap { padding: 36px 24px; }
  .cta-banner { padding: 40px 24px; }
  footer { padding: 40px 24px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 0 28px; }
}
@media(max-width: 600px) {
  .hero { min-height: 60vh; }
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .trust-bar { grid-template-columns: 1fr; }
  .zone-cities { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-btn span { display: none; }
  .two-col { grid-template-columns: 1fr; }
}
