* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --violet: #5B2D8B;
  --orange: #F4A100;
  --dark: #333;
  --light: #fff;
  --grey: #555;
}

/* Body */
body {
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
}

/* Header */
/* Header stylé avec violet assorti à l’écriture */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: #5B2D8B; /* même violet que les titres */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* légère ombre pour le relief */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: none;
  transition: background 0.3s;
}

.header .logo img {
  height: 120px;
}

/* Menu */
.header a {
  margin-left: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

.header a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.header a.active {
  background: rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 700;
}


/* Bannière */
.banner img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* Hero section */
.hero {
  padding: 60px 10%;
  text-align: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.9));
}

.hero h1 {
  font-size: 3rem;
  color: var(--violet);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--grey);
  margin-bottom: 30px;
}

.buttons {
  margin-top: 20px;
}

.btn {
  padding: 14px 30px;
  margin: 5px;
  border-radius: 50px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.violet { background: var(--violet); }
.orange { background: var(--orange); }
.whatsapp { background: #25D366; }

/* Présentation */
.presentation {
  padding: 80px 10%;
  text-align: center;
  background: #f7f7f7;
}

.presentation h2 {
  color: var(--violet);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.presentation p {
  font-size: 1.2rem;
  color: var(--grey);
  max-width: 900px;
  margin: 0 auto;
}

/* Produits phares */
.products {
  padding: 80px 10%;
  text-align: center;
}

.products h2 {
  color: var(--violet);
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  border: 2px solid var(--violet);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card h3 {
  color: var(--violet);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  color: var(--grey);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  padding: 30px 10%;
  text-align: center;
  background: #f0f0f0;
  color: var(--grey);
}

/* Animations fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Centrer le titre et le texte des pages */
.page-title, .products {
  text-align: center;
}

/* Centrer le texte dans les cartes produits */
.card h3, .card p {
  text-align: center;
}

/* Espacement des cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}
/* Page title amélioré */
.page-title {
  padding: 80px 10%;
  background: #f7f7f7;
  text-align: center;
}

.page-title .title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-title h1 {
  font-size: 3rem;
  color: var(--violet);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-title .subtitle {
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1.6;
}

.page-title .subtitle .highlight {
  color: var(--violet);
  font-weight: 600;
}
/* Titre devis harmonisé */
.page-title {
  padding: 80px 10%;
  background: #f7f7f7;
  text-align: center;
}

.page-title h1 {
  font-size: 3rem;
  color: var(--violet);
  margin-bottom: 15px;
}

.page-title .subtitle {
  font-size: 1.3rem;
  color: #444;
}

.page-title .highlight {
  color: var(--violet);
  font-weight: 600;
}

/* Section formulaire */
.form-section {
  padding: 80px 10%;
  background: #fff;
}

.devis-form {
  max-width: 650px;
  margin: 0 auto;
  background: #fafafa;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--violet);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
}
/* Page Contact */
.contact-section {
  padding: 80px 10%;
  background: #fff;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  color: var(--violet);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Espacement infos contact */
.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Bouton WhatsApp dans la page contact */
.contact-info .btn.whatsapp {
  display: inline-block;
  margin-top: 25px;   /* 👈 ESPACEMENT CLÉ */
}


/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}
/* RESPONSIVE MOBILE */
/* ===== RESPONSIVE MOBILE (tous les écrans < 768px) ===== */
@media screen and (max-width: 768px) {

  /* Header */
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 5%;
  }

  .header .logo img {
    max-width: 150px; /* réduit la taille du logo */
    height: auto;
    margin-bottom: 10px;
  }

  .header nav {
    margin-top: 10px;
  }

  .header a {
    display: inline-block;
    margin: 5px 10px;
    font-size: 0.9rem;
  }

  /* Bannière */
  .banner img {
    width: 100%;
    height: auto;
    border-radius: 0 0 20px 20px;
  }

  /* Hero / Introduction */
  .hero {
    padding: 30px 5%;
  }

  .hero h1 {
    font-size: 1.5rem; /* réduit la taille du titre principal */
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .buttons {
    display: flex;
    flex-direction: column; /* boutons empilés */
    gap: 10px;
    align-items: center;
    margin-top: 15px;
  }

  .buttons .btn {
    width: 100%; /* boutons prennent toute la largeur disponible */
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
  }

  /* Présentation */
  .presentation {
    padding: 30px 5%;
  }

  .presentation h2 {
    font-size: 1.5rem;
  }

  .presentation p {
    font-size: 0.95rem;
  }

  /* Produits */
  .products {
    padding: 30px 5%;
  }

  .cards {
    grid-template-columns: 1fr; /* 1 carte par ligne */
    gap: 20px;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.95rem;
  }

  .card .btn {
    width: 100%;
    margin-top: 10px;
  }

  /* Footer */
  footer {
    padding: 20px 5%;
    font-size: 0.9rem;
  }
}
