/* Reset simple */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #f5f7fb;
  line-height: 1.6;
}

/* Layout généraux */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-soft {
  padding: 4rem 0;
  background-color: #f0f4f9;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  color: #5b6470;
}

.lead {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-mark {
  color: #008c9e;
}

.logo-text {
  color: #1f2933;
}

.main-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #3e4c59;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #008c9e;
}

/* Hero */

.hero {
  background: linear-gradient(to right, #f5f7fb, #e7f3f6);
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.hero h2 {
  font-size: 1.5rem;
  color: #008c9e;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 480px;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.hero-image {
  min-height: 220px;
  border-radius: 16px;
  background: #cfd8e3;
  /* Tu peux remplacer ça avec background-image:url('ton-image.jpg'); */
}

/* Boutons */

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: linear-gradient(90deg, #008c9e, #00a4b8);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(0, 140, 158, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* Grilles et cartes */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cards .card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.cards .card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.stat {
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #008c9e;
}

.stat-value span {
  font-size: 1rem;
  font-weight: 500;
}

.stat-label {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* CTA */

.cta {
  background: #294760;
  color: #f9fafb;
  padding: 3rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.cta p {
  margin-bottom: 1.5rem;
}

/* Footer */

.site-footer {
  background: #0f2534;
  color: #d1e0f0;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-logo .logo-mark {
  color: #ffffff;
}

.site-footer a {
  color: #d1e0f0;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(209, 224, 240, 0.2);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Page devis */

.badges span {
  display: inline-block;
  margin: 0.3rem 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background-color: #e0f2f7;
  color: #036675;
  font-size: 0.8rem;
}

.quote-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 2rem;
}

/* Formulaire de devis */

.quote-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.5rem;
}

.quote-column h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.quote-column label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.quote-column input,
.quote-column select,
.quote-full textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #d4dde7;
  font-size: 0.9rem;
}

.inline-input {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
}

.quote-full {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.quote-full h2 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.helper-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.checkbox-inline input {
  margin-top: 0.2rem;
}

.btn-primary.right {
  margin-top: 1.2rem;
  float: right;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.checkbox-card {
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: #f5f7fb;
  border-radius: 12px;
  font-size: 0.9rem;
}

.checkbox-card input {
  margin-top: 0.25rem;
}

/* Sidebar devis */

.quote-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-sidebar .card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

.quote-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.advantages-list {
  list-style: none;
}

.advantages-list li + li {
  margin-top: 0.5rem;
}

/* Responsif */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-form {
    grid-template-columns: 1fr 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.6rem 0;
    gap: 0.5rem;
  }

  .main-nav a {
    margin: 0 0.6rem;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .grid-4,
  .grid-3,
  .stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .btn-primary.right {
    float: none;
    width: 100%;
    text-align: center;
  }
}
