/* HOME */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  background-color: #f7fdff;
  color: #111827;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* HEADER & NAVIGATION */
header {
  background: #ffffff;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
  padding: 0.75rem 2rem;
  border-radius: 0 0 8px 8px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background-color: #4dc6ff;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.8rem;
  position: relative;
  flex-wrap: wrap;
}

nav .logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

nav .logo img {
  height: clamp(64px, 9vw, 110px);
  width: auto;
  display: block;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover {
  color: #41a9da;
}

nav a:not(.logo):not(:last-of-type) {
  margin: 0 1.4rem;
  transform: translateX(-0.5rem);
}

nav a:last-of-type {
  margin-left: auto;
}

/* === MENU BURGER === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
  }

  nav a:not(.logo) {
    display: none;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
  }

  nav.active a:not(.logo) {
    display: block;
  }
}

/* HERO */
.hero {
  color: #0b1220;
  padding: 3rem 1rem;
  border-radius: 12px;
}

.hero-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  max-width: 1100px;
  margin: 1rem auto 0;
}

.hero-headtext {
  text-align: center;
}

.hero h1 {
  margin: 0 auto 0.5rem;
  max-width: 1100px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto 1.5rem;
  max-width: 1100px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: #000000;
}

.hero-gallery,
.hero-desc {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slides img.active {
  opacity: 1;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.hero-nav.prev {
  left: 10px;
}

.hero-nav.next {
  right: 10px;
}

.hero-nav:hover {
  filter: brightness(0.98);
}

.hero-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.hero-desc {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.hero-desc h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.hero-desc p {
  margin: 0;
  color: #000000;
}

.hero-desc a.btn-1 {
  justify-self: start;
  align-self: start;
  margin-top: 1.25rem;
  padding: 0.4em 1.25em;
  font-size: 1rem;
}

/* Carte d'info à gauche, call-to-action à droite */
.hero-desc > :first-child {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    padding: 2.25rem 1rem;
  }
  .hero-desc {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-desc a.btn-1 {
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero > h1 {
    font-size: 1.6rem;
  }
  .hero > p {
    font-size: 0.98rem;
  }
  .hero-gallery {
    aspect-ratio: 4 / 3;
  }
}

.btn-1 {
  margin-top: 0.5rem;
  padding: 0.4em 1.2em;
  border-radius: 0.4em;
  border: none;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  background: #41a9da;
  color: #ffffff;
  transition: background-color 0.5s, color 0.5s;
}

.btn-1:hover {
  background: #4dc6ff;
  color: #ffffff;
  border: solid;
  border-width: 0.1rem;
}

/* SECTION SERVICES */
.services {
  color: rgb(0, 0, 0);
  background-color: #ffffff;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

.service-card {
  max-width: 1100px;
  margin: 1.25rem auto;
  padding: 1.25rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.service-image video {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-text,
.service-image {
  flex: 1;
  min-width: 0; /* évite les débordements */
}

.service-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.service-text p {
  margin: 0 0 0.75rem;
}

.service-text ul {
  margin: 0 0 0.75rem;
  padding-left: 1rem;
}

.service-text li {
  margin: 0.25rem 0;
}

.service-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Alternance gauche/droite */
.service-card.reverse .service-content {
  flex-direction: row-reverse;
}

/* Bouton service */
.btn-service {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: #41a9da;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s, transform 0.06s;
}

.btn-service:hover {
  filter: brightness(1.05);
}
.btn-service:active {
  transform: translateY(1px);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .service-content {
    gap: 1.25rem;
  }
  .service-image img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }
  .service-card.reverse .service-content {
    flex-direction: column;
  }
  .service-image img {
    height: 220px;
  }
}

/* CONTACT */
.contact {
  padding: 4rem 1rem;
  background: #f3f4f6;
}

.contact-info {
  max-width: 1100px;
  margin: 0 auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-info div {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.contact-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.contact-info p {
  margin: 0;
  color: #000000;
}

.contact-info a {
  color: #41a9da;
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  text-decoration: underline;
}

.contact .btn-1 {
  display: center;
  margin-top: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* SERVICES - Grilles pour les réparations et marques */
.repair-grid,
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.repair-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repair-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.repair-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.repair-item span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand-item:hover {
  border-color: #41a9da;
  transform: scale(1.05);
}

.brand-item img {
  max-width: 80px;
  max-height: 40px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.brand-item:hover img {
  filter: grayscale(0%);
}

/* Avantages */
.advantages-list {
  margin: 1.5rem 0;
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
}

.advantage-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.advantage-text h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.advantage-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #000000;
}

/* RESPONSIVE pour les grilles */
@media (max-width: 640px) {
  .repair-grid,
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .repair-item,
  .brand-item {
    padding: 0.75rem;
  }

  .repair-item img {
    width: 32px;
    height: 32px;
  }

  .brand-item img {
    max-width: 60px;
    max-height: 30px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #111; /* fond noir profond */
  color: #fff;
  padding: 1.5rem 1rem 0.75rem; /* ↓ réduit le padding */
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem; /* ↓ moins d’espace entre colonnes */
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.footer-column h4 {
  font-size: 0.9rem; /* ↓ plus petit */
  text-transform: uppercase;
  letter-spacing: 0.5px; /* ↓ moins espacé */
  margin-bottom: 0.6rem; /* ↓ espace plus serré */
  color: #fff;
}

.footer-column a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.4rem; /* ↓ réduit l’espace entre les liens */
  font-size: 0.85rem; /* ↓ taille texte plus fine */
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
}
