/* ==========================================================================
   Avenir 2A — feuille de style principale
   Palette : bleu ardoise (principal), blanc, gris clair, anthracite, accent bleu acier
   ========================================================================== */

:root {
  --color-primary: #16233f;       /* bleu ardoise profond */
  --color-primary-dark: #0d1626;  /* bleu très foncé (overlay hero) */
  --color-accent: #3d7cb0;        /* bleu acier / accent */
  --color-accent-light: #eaf2f8;  /* bleu clair très léger (fond de section) */
  --color-gray-light: #f5f6f8;    /* gris très clair (fond de section) */
  --color-gray-anthracite: #2b2f36;
  --color-beige: #f8f4ee;         /* beige discret, optionnel */
  --color-white: #ffffff;
  --color-text: #23272f;
  --color-text-light: #5b6270;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 25, 45, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 16px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

section {
  padding: 80px 0;
}

.bg-light {
  background: var(--color-gray-light);
}

.bg-accent-light {
  background: var(--color-accent-light);
}

.bg-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.bg-primary h2 {
  color: var(--color-white);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #2f679a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 124, 176, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-gray-anthracite);
  transform: translateY(-2px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(15, 25, 45, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Menu mobile en CSS pur (technique checkbox) */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--color-primary);
  padding: 4px 8px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(160deg, rgba(13, 22, 38, 0.88), rgba(22, 35, 63, 0.72)),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 720px;
  color: var(--color-white);
  padding: 60px 24px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  color: #e7ecf3;
}

.hero-tags {
  margin-top: 32px;
  font-size: 0.9rem;
  color: #c9d4e3;
  letter-spacing: 0.3px;
}

/* ---------- Intro ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.info-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--color-gray-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ---------- Chiffres clés ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 12px;
}

.stat-item strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 0.85rem;
  color: #c9d4e3;
}

/* ---------- Cartes / Grilles ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(15, 25, 45, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Section avec image + texte (ex : rénovation habitat) */

.section-intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.section-intro-row .text {
  flex: 1 1 420px;
}

.section-intro-row .image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-intro-row .image {
  flex: 1 1 380px;
}

/* ---------- Timeline (méthode de travail) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.timeline-step {
  text-align: center;
  padding: 24px 14px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
}

.timeline-step p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

/* ---------- Réalisations ---------- */

.realisations-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.realisations-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- Badges fournisseurs / références ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.supplier-badge {
  background: var(--color-white);
  border: 1px solid #dde3ec;
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(15, 25, 45, 0.04);
}

.refs-heading {
  text-align: center;
  margin-top: 56px;
  font-size: 1.1rem;
  color: var(--color-text-light);
  font-weight: 600;
}

/* ---------- Avis clients ---------- */

.reviews-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 36px;
}

.reviews-box p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* ---------- Zone d'intervention ---------- */

.zone-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.zone-cities span {
  background: var(--color-accent-light);
  color: var(--color-primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Infos pratiques ---------- */

.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.infos-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.infos-card h3 {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--color-accent);
}

.infos-card h3:first-child {
  margin-top: 0;
}

.infos-card p {
  margin: 4px 0 0;
  color: var(--color-text-light);
}

.infos-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.infos-buttons .btn {
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-gray-anthracite);
  color: #cfd3d9;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  transition: background 0.15s ease;
}

.footer-social a:hover {
  background: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  text-decoration: underline;
}

/* ---------- Page mentions légales ---------- */

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-content h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.legal-content p {
  color: var(--color-text-light);
}

.legal-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 70px 0;
  text-align: center;
}

.legal-hero h1 {
  color: var(--color-white);
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .intro-grid,
  .infos-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle-label {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 0 8px;
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 500px;
  }

  .header-cta .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .stats-band {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
}
