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

/* BASE */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */
.header {
  text-align: center;
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #1e40af, #312e81);
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.header p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #c7d2fe;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  background-color: #6366f1;
  color: #fff;
  padding: 16px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #818cf8;
  transform: translateY(-3px);
}

/* SECTIONS */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.section.dark {
  background-color: #020617;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

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

.cards.center {
  justify-content: center;
}

/* CARD */
.card {
  background-color: #020617;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99,102,241,0.3);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* CARD CONTENT */
.card h3 {
  font-size: 1.3rem;
  margin: 20px 15px 10px;
}

.card p {
  font-size: 1rem;
  padding: 0 20px;
  color: #cbd5f5;
}

/* DEVIS */
#devis p {
  font-size: 1.1rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #020617;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* FORMULAIRE */
.form {
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.05rem;
  border-radius: 12px;
  border: none;
  background-color: #020617;
  color: #e5e7eb;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid #6366f1;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.3rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .card {
    height: auto;
  }

  .card img {
    height: 180px;
  }
}
