
/* BASE */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #f9f9f9;
  padding-top: 80px; /* pour header fixe */
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
header .logo {
  height: 60px;
}
header nav a {
  color: #333;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}
header nav .btn-rdv {
  background: #e60000;
  padding: 6px 15px;
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}
header nav .btn-rdv:hover {
  background: #b80000;
  transform: translateY(-2px);
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 20px;
}
.hero-caption h1 {
  font-size: 3em;
}
.hero-caption p {
  font-size: 1.2em;
}

/* SERVICES DETAIL */
.services-detail {
  padding: 80px 20px;
  text-align: center;
  background: #f9f9f9;
}
.services-detail h1 {
  font-size: 3em;
  color: #e60000;
  margin-bottom: 10px;
}
.services-intro {
  font-size: 1.2em;
  margin-bottom: 50px;
  color: #555;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.service-card {
  background: #fff;
  padding: 40px 25px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.service-card img.service-icon-img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  transition: transform 0.5s;
  border-radius: 8px;
}
.service-card:hover img.service-icon-img {
  transform: scale(1.1);
}
.service-card h3 {
  color: #e60000;
  margin-bottom: 15px;
  font-size: 1.5em;
  transition: color 0.3s, transform 0.3s;
}
.service-card:hover h3 {
  color: #b80000;
  transform: translateY(-5px);
}
.service-card p {
  color: #444;
  transition: color 0.3s;
}
.service-card:hover p {
  color: #555;
}

/* HOME SERVICES */
.home-services {
  padding: 80px 20px;
  text-align: center;
}
.home-services h2 {
  font-size: 2.8em;
  margin-bottom: 50px;
  color: #e60000;
}
.home-services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  justify-items: center;
  margin-bottom: 50px;
}
.service-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.service-item i {
  font-size: 40px;
  color: #e60000;
  margin-bottom: 15px;
}
.service-item h3 {
  font-size: 1.3em;
  color: #333;
}
.btn-rdv-big {
  display: inline-block;
  background: #e60000;
  color: #fff;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease;
}
.btn-rdv-big:hover {
  background: #b80000;
}

/* AVIS CLIENTS */
.avis-clients {
  background: #f7f7f7;
  padding: 60px 20px;
  text-align: center;
}
.avis-clients h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #e60000;
}
.avis-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.avis {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
}
.avis i {
  font-size: 30px;
  color: #e60000;
  margin-bottom: 15px;
}
.avis p {
  font-style: italic;
  margin-bottom: 15px;
}
.stars {
  color: #f5c518;
  margin-bottom: 10px;
}
.btn-avis {
  display: inline-block;
  background: #e60000;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn-avis:hover {
  background: #b80000;
}

/* FOOTER */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}



/* HOME SERVICES GRID  */

/* RESET de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #f9f9f9;
}

h1, h2, h3 {
  font-weight: bold;
}

section.services {
  padding: 60px 20px;
  text-align: center;
}

.services h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.services p.intro {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #666;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.service-card p {
  font-size: 16px;
  color: #555;
}

@media (max-width: 768px) {
  .services h1 {
    font-size: 28px;
  }
  .services p.intro {
    font-size: 16px;
  }
}



/* HERO */
.hero {
  background: url('../images/slides/Arsautomobiles-1.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.cta-btn {
  display: inline-block;
  background: #e60000;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.services-preview {
  padding: 60px 20px;
  text-align: center;
}

.services-preview h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.cta-link {
  display: inline-block;
  margin-top: 30px;
  color: #e60000;
  text-decoration: none;
  font-weight: bold;
}

footer {
  background: #222;
  color: #ddd;
  text-align: center;
  padding: 30px 20px;
}



.services-preview {
  padding: 80px 20px;
  text-align: center;
  background: #f5f5f5;
}

.services-preview h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.services-preview p.intro {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555;
}

.services-preview .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-preview .service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: left;
  padding: 25px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.services-preview .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.services-preview .service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.services-preview .service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.services-preview .service-card p {
  font-size: 16px;
  color: #666;
}

.services-preview .cta-link {
  display: inline-block;
  margin-top: 40px;
  color: #e60000;
  font-weight: bold;
  text-decoration: none;
}


.about-garage, .engagements {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.about-garage h2, .engagements h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-garage p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: #555;
}

.engagements ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 20px auto 0 auto;
  text-align: left;
}

.engagements ul li {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.engagements ul li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #e60000;
}


footer {
  background: #222; /* ou ta couleur sombre */
  color: #ddd;
  text-align: center;
  padding: 30px 20px;
}

footer a,
footer a:visited {
  color: #fff; /* blanc lisible */
  text-decoration: underline;
}

footer a:hover {
  color: #e60000; /* effet rouge au survol */
}



.engagements {
  text-align: center;
  padding: 80px 20px;
  background: #f9f9f9;
}

.engagements h2 {
  font-size: 32px;
  color: #e60000;
  margin-bottom: 50px;
}

.engagements-grid {
  display: flex;
  justify-content: center;
  gap: 60px; /* espace entre ronds */
  flex-wrap: wrap; /* s'empile si pas assez de place */
}

.engagement-item {
  flex: 0 1 180px; /* taille fixe, rétrécit si besoin */
  text-align: center;
}

.engagement-item .circle {
  width: 120px;
  height: 120px;
  background: #e60000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px; /* icône plus grande */
  color: #fff;
  margin: 0 auto 20px auto;
  transition: transform 0.3s ease;
}

.engagement-item .circle:hover {
  transform: scale(1.1);
}

.engagement-item p {
  font-size: 18px;
  color: #333;
}

.rdv-online {
  background: #e60000;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.rdv-online h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.rdv-online p {
  font-size: 20px;
  margin-bottom: 30px;
}

.rdv-online .cta-btn {
  background: #fff;
  color: #e60000;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
}

.rdv-online .cta-btn:hover {
  background: #f9f9f9;
  color: #c00000;
}


.contact-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.contact-section h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
  color: #e60000;
}

.contact-section .message {
  border-left: 5px solid #28a745; /* vert par défaut */
  background: #e6f9ec;
  color: #333;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.contact-section .message:contains('❌') {
  border-left-color: #e60000;
  background: #ffe6e6;
}

.contact-section form .form-group {
  margin-bottom: 20px;
}

.contact-section form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.contact-section form input,
.contact-section form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
  border-color: #e60000;
  outline: none;
}

.contact-section form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-section .btn-send {
  display: inline-block;
  background: #e60000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-section .btn-send:hover {
  background: #c00000;
}



.contact-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.contact-section h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
  color: #e60000;
}

.contact-section .message.success {
  border-left: 5px solid #28a745;
  background: #e6f9ec;
  padding: 15px 20px;
  margin-bottom: 30px;
}

.contact-section .message.error {
  border-left: 5px solid #e60000;
  background: #ffe6e6;
  padding: 15px 20px;
  margin-bottom: 30px;
}

.contact-section form .form-group {
  margin-bottom: 20px;
}

.contact-section form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.contact-section form input,
.contact-section form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
  border-color: #e60000;
}

.contact-section .btn-send {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-section .btn-send:hover {
  background: #c00000;
}


.rdv-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.rdv-section h1 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
  color: #e60000;
}

.rdv-section .message.success {
  border-left: 5px solid #28a745;
  background: #e6f9ec;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.rdv-section .message.error {
  border-left: 5px solid #e60000;
  background: #ffe6e6;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.rdv-section .form-group {
  margin-bottom: 20px;
}

.rdv-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.rdv-section input,
.rdv-section select {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.rdv-section input:focus,
.rdv-section select:focus {
  border-color: #e60000;
}

.rdv-section .btn-send {
  display: inline-block;
  background: #e60000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.rdv-section .btn-send:hover {
  background: #c00000;
}



/* Hero section pour Nos Services */
.services-hero {
  background: #e60000;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.services-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.services-hero p {
  font-size: 20px;
}

/* Grille des services */
.services-detail {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 40px 20px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  font-size: 50px;
  color: #e60000;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 16px;
  color: #555;
}


.rdv-cta {
  background: #e60000;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.rdv-cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.rdv-cta p {
  font-size: 20px;
  margin-bottom: 30px;
}

.rdv-cta .btn-cta {
  display: inline-block;
  background: #fff;
  color: #e60000;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
}

.rdv-cta .btn-cta:hover {
  background: #f9f9f9;
  color: #c00000;
}


header .logo {
  height: 80px; /* au lieu de 60px par exemple */
  max-width: 100%;
  object-fit: contain;
}


/* === PATCH RESPONSIVE === */

/* Logo plus grand et header centré */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 40px;
}

header .logo {
  height: 80px;
  max-width: 100%;
}

/* Navigation responsive */
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Grilles adaptatives */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* Formulaire responsive */
form input, form textarea, form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  background: #222;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* Responsive spacing */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  header nav {
    justify-content: center;
  }
}


.partenaires {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.partenaires h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
}

.partenaires-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.partenaires-logos img {
  max-height: 60px;
  max-width: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.partenaires-logos img:hover {
  transform: scale(1.05);
  filter: none;
}


.partenaires {
  background: #f0f4f8; /* Fond chic et lumineux */
  padding: 100px 20px;
}

.partenaires .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.partenaires h2 {
  font-size: 42px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partenaires-intro {
  font-size: 20px;
  color: #444;
  max-width: 800px;
  margin: 0 auto 60px auto;
  line-height: 1.8;
}

.partenaires-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px 60px;
  align-items: center;
  justify-items: center;
}

.partenaires-logos .logo-item {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.4s cubic-bezier(.19,1,.22,1), box-shadow 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.partenaires-logos .logo-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.partenaires-logos img {
  max-height: 60px;
  max-width: 140px;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.4s;
}

.partenaires-logos .logo-item:hover img {
  filter: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  display: block;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card img {
  width: 100%;
  height: auto; /* ✅ Évite la coupe en hauteur */
  display: block;
  object-fit: cover; /* Ajuste le ratio tout en remplissant */
}

.service-card h3 {
  margin: 15px 0 5px;
}

.service-card p {
  margin: 0 15px 15px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr; /* ✅ 1 colonne pour mobile */
  }
}


/* Grille flexible */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Carte service */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Bloc image : conteneur fixe */
.service-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3; /* ✅ Garde un ratio fixe */
  object-fit: cover; /* ✅ Remplit sans déformer */
}

/* Textes */
.service-card h3 {
  margin: 15px 0 5px;
  padding: 0 15px;
}

.service-card p {
  margin: 0 15px 15px;
}

/* Mobile : une colonne */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}


.partenaires-logos img {
  filter: grayscale(0%); /* ✅ Plus de noir et blanc */
  transition: filter 0.3s ease;
}

.partenaires-logos img:hover {
  filter: none; /* Ou tu peux ajouter un effet zoom si tu veux */
}
