/* ==========================================================================
   1. VARIABLES & RÉINITIALISATION (Spécialiste Clés & Serrurerie Auto)
   ========================================================================== */
:root {
  --primary-color: #fcc200;    /* Jaune or / Sécurité & Clés */
  --primary-hover: #e0ad00;
  --dark-color: #1a1a1a;       /* Noir profond automobile */
  --light-color: #f4f5f7;      /* Fond gris très clair */
  --white: #ffffff;
  --gray: #6c757d;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   2. EN-TÊTE & NAVIGATION
   ========================================================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background-color: var(--dark-color); /* Fond noir pour faire ressortir le logo clés */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   3. SECTION ACCUEIL (HERO)
   ========================================================================== */
.hero {
  width: 100%;
  height: 55vh;
  overflow: hidden;
  border-bottom: 5px solid var(--primary-color);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   4. SECTION SERVICES (Double de clés, programmation, dépannage...)
   ========================================================================== */
.services {
  padding: 6rem 5%;
  text-align: center;
  background-color: var(--white);
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  text-transform: uppercase;
  font-weight: 800;
}

.services h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.service-list > div {
  background-color: var(--light-color);
  padding: 3rem 2rem;
  border-radius: 12px;
  width: calc(25% - 2.5rem);
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

/* Effet interactif premium au survol */
.service-list > div:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-bottom: 3px solid var(--primary-color);
}

.service-list img {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-list p {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ==========================================================================
   5. SECTION À PROPOS (Expertise clés de voiture)
   ========================================================================== */
.about {
  padding: 6rem 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  background-color: var(--light-color);
}

.about > img {
  flex: 1 1 400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about > div:nth-of-type(1) {
  flex: 1 1 400px;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #4a4a4a;
}

/* Galerie photos des clés/boîtiers programmés */
.moteurs {
  flex: 1 1 100%;
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.moteurs img {
  flex: 1;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.moteurs img:hover {
  transform: scale(1.03);
}

/* ==========================================================================
   6. SECTION CONTACT & LOCALISATION
   ========================================================================== */
.contact {
  padding: 6rem 5%;
  background-color: var(--white);
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.contact h2 {
  flex: 1 1 100%;
  font-size: 2.5rem;
  font-weight: 800;
}

address {
  flex: 1 1 300px;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 2;
}

address strong {
  font-size: 1.6rem;
  color: var(--dark-color);
  display: block;
  margin-bottom: 0.5rem;
}

/* Style du bouton email */
address a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
  transition: var(--transition);
}

address a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.contact img {
  flex: 1 1 450px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-height: 380px;
  object-fit: cover;
}

/* ==========================================================================
   7. PIED DE PAGE
   ========================================================================== */
footer {
  background-color: var(--dark-color);
  color: #a0a0a0;
  text-align: center;
  padding: 2.5rem 5%;
  font-size: 0.95rem;
  border-top: 3px solid var(--primary-color);
}

/* ==========================================================================
   8. COMPATIBILITÉ SMARTPHONE & TABLETTE
   ========================================================================== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .hero {
    height: 35vh;
  }

  .service-list > div {
    width: 100%;
  }

  .moteurs {
    flex-direction: column;
  }

  .moteurs img {
    height: 220px;
  }
}
