/* =============================
   🌑 STYLE GLOBAL
   ============================= */
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: #1e1e1e;  /* Fond gris foncé style métal */
  color: #f7f7f7;       /* Texte clair */
}

/* =============================
   🧱 EN-TÊTE (HEADER)
   ============================= */
header {
  display: flex;
  justify-content: space-between; /* Logo à gauche, menu à droite */
  align-items: center;
  background: #292929;
  padding: 15px 40px;
  border-bottom: 3px solid #ff6600;
}

/* Logo + nom entreprise */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { height: 120px; } /* Taille du logo */
.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: #ff6600;
  text-transform: uppercase;
}

/* Liens du menu */
nav a {
  color: #ddd;
  font-size: 25px;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s;
}
nav a:hover,
nav a.active {
  color: #ff6600; /* Orange survol ou page active */
}

/* =============================
   🚛 SECTION HERO (bannière)
   ============================= */
.hero {
  text-align: center;
  color: #f1f1ef;
  font-size: 20px;
  padding: 100px 20px;
  background: url('https://images.unsplash.com/photo-1597004261801-b92d1e1e8b93?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero h1 {
  font-size: 2.8rem;
  color: #ff6600;
  text-shadow: 2px 2px 6px #000;
}
.hero p {
  font-size: 2rem;
  max-width: 600px;
  margin: 20px auto;
  color: #fdfdfd;
}

/* Bouton principal */
.btn {
  display: inline-block;
  background: #ff6600;
  color: white;
  font-size: 1.5rem;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #e85500;
}

/* =============================
   ⚙️ SECTION SERVICES
   ============================= */
.services {
  text-align: center;
  color: #ff6600;
  font-size: 30px;
  padding: 60px 20px;
}

/* Conteneur de cartes */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Carte individuelle */
.service-card {
  background: #2c2c2c;
  font-size: 20px;
  color: #f7f7f7;
  width: 280px;
  padding: 20px;
  border-left: 5px solid #ff6600;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255,102,0,0.4);
}
.service-card h3 { color: #ff6600; }

/* Image dans les cartes */
.service-img {
  display: block;
  height: 210px;
  margin: 0 auto 15px;
  background: none;
  border: none;
  box-shadow: none;
}

/* =============================
   📞 SECTION CONTACT
   ============================= */
.contact {
  text-align: center;
  padding: 60px 20px;
  background: #1e1e1e;
  border-top: 3px solid #ff6600;
}

.contact h1 {
  color: #ff6600;
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact p {
  font-size: 2rem;
  background-color: #e85500;
  color: #e6ff02;
  margin: 8px 0;
}

/* Bloc d’informations */
.contact-info {
  margin-top: 25px;
  display: inline-block;
  background: #2c2c2c;
  padding: 20px 40px;
  }
.center-img {
  display: block;        /* Nécessaire pour utiliser margin auto */
  margin: 0 auto;        /* Centre horizontalement */
}
/* =============================
   🖼️ GALERIE D’IMAGES
   ============================= */
.galerie {
  text-align: center;
  padding: 60px 20px;
  background: #1e1e1e;
  color: #ff6600;
}

.galerie h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: #ff6600;
  text-shadow: 1px 1px 4px #000;
}

/* Grille de la galerie */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptatif */
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Style des images */
.galerie-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;       /* Coupe l’image joliment */
  border-radius: 8px;
  border: 2px solid #ff6600;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Effet au survol */
.galerie-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}
/* =============================
   📱 ADAPTATION FORMAT TÉLÉPHONE
   ============================= */
@media (max-width: 768px) {

  /* ---- En-tête ---- */
  header {
    flex-direction: column;
    text-align: center;
    padding: 10px 15px;
  }

  .logo-container {
    flex-direction: column;
  }

  .logo-img {
    height: 80px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  nav a {
    font-size: 1.1rem;
    margin: 0;
  }

  /* ---- Section Hero ---- */
  .hero {
    padding: 60px 15px;
    font-size: 1rem;
    background-position: center;
    background-size: cover;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
    margin: 15px auto;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* ---- Services ---- */
  .services {
    font-size: 1.5rem;
    padding: 40px 15px;
  }

  .service-list {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
    font-size: 1rem;
    padding: 15px;
  }

  .service-img {
    height: auto;
    width: 100%;
    max-height: 200px;
  }

  /* ---- Contact ---- */
  .contact h1 {
    font-size: 1.5rem;
  }

  .contact p {
    font-size: 1rem;
  }

  .contact-info {
    width: 90%;
    padding: 15px;
  }

  .center-img {
    width: 100%;
    height: auto;
  }

  /* ---- Galerie ---- */
  .galerie h2 {
    font-size: 1.5rem;
  }

  .galerie-grid {
    grid-template-columns: 1fr;
  }

  .galerie-grid img {
    height: auto;
  }

  /* ---- Footer ---- */
  footer p {
    font-size: 0.9rem;
    padding: 15px;
    text-align: center;
  }
}

/* Ajustement encore plus serré (petits téléphones) */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }

  nav a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}
