/* ================================================
   JD Entretien — Feuille de styles principale
   Couleurs : blanc #fff, noir #111, rouge #c0392b,
              gris clair #f5f5f5, gris anthracite #2d2d2d
   ================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}

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

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

ul { list-style: none; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout utilitaires ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--grey {
  background: #f5f5f5;
}

.section--dark {
  background: #2d2d2d;
  color: #fff;
}

.section--red {
  background: #c0392b;
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: .6rem;
}

.section-title p {
  max-width: 680px;
  margin: 0 auto;
  color: #555;
  font-size: .95rem;
}

.section--dark .section-title p,
.section--red .section-title p {
  color: rgba(255,255,255,.8);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn--red {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

.btn--red:hover {
  background: #a93226;
  border-color: #a93226;
  transform: translateY(-2px);
}

.btn--dark {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn--dark:hover {
  background: #2d2d2d;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

/* Logo texte */
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -.5px;
  flex-shrink: 0;
}

.logo span { color: #c0392b; }

/* Navigation principale */
.nav-list {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-list a {
  font-size: .88rem;
  font-weight: 500;
  color: #333;
  transition: color .2s;
  white-space: nowrap;
}

.nav-list a:hover { color: #c0392b; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1604079628040-94301bb21b91?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

/* Overlay dégradé sombre/rouge */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,.82) 0%, rgba(150,30,20,.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 720px;
}

.hero-content h1 {
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-content .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-tags {
  margin-top: 2rem;
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* ---------- Section intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-grid img {
  border-radius: 8px;
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.badge-exp {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.intro-encart {
  background: #f5f5f5;
  border-left: 4px solid #c0392b;
  padding: 1rem 1.2rem;
  border-radius: 0 6px 6px 0;
  font-size: .9rem;
  color: #333;
  margin-top: 1.25rem;
}

/* ---------- Chiffres clés ---------- */
.stats-band {
  background: #111;
  color: #fff;
  padding: 2.5rem 0;
}

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

.stat-item {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
  color: #c0392b;
}

.stat-label {
  font-weight: 700;
  font-size: .95rem;
  display: block;
}

.stat-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-top: .2rem;
  display: block;
}

/* ---------- Grille de cartes ---------- */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--6 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #fde8e6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #c0392b;
}

/* Petits pictogrammes CSS purs */
.icon-wrench::before { content: '🔧'; }
.icon-flame::before  { content: '🔥'; }
.icon-fire::before   { content: '🪵'; }
.icon-phone::before  { content: '📞'; }
.icon-check::before  { content: '✔'; }
.icon-star::before   { content: '⭐'; }
.icon-clock::before  { content: '⏱'; }
.icon-ear::before    { content: '👂'; }
.icon-chat::before   { content: '💬'; }
.icon-brands::before { content: '🏷'; }
.icon-clean::before  { content: '🧹'; }
.icon-repair::before { content: '⚙'; }
.icon-doc::before    { content: '📄'; }
.icon-sweep::before  { content: '🪣'; }
.icon-zone::before   { content: '📍'; }
.icon-news::before   { content: '📰'; }

.card h3 { margin-bottom: .5rem; font-size: 1rem; }
.card p  { font-size: .88rem; color: #555; }

/* Section grey — cartes sur fond gris */
.section--grey .card { background: #fff; }

/* ---------- Section dépannage (prioritaire) ---------- */
.depannage-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.depannage-badge {
  flex-shrink: 0;
  background: #c0392b;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .3rem .8rem;
  border-radius: 4px;
  margin-top: .25rem;
}

/* ---------- Section ramonage (image + texte) ---------- */
.ramonage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ramonage-grid img {
  border-radius: 8px;
  height: 360px;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

/* ---------- Section Pourquoi ---------- */
.cards-grid--6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Réalisations (cartes texte sobre) ---------- */
.realisations-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.real-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: .9rem;
}

.real-card::before {
  content: '✓';
  display: block;
  font-size: 1.5rem;
  color: #c0392b;
  margin-bottom: .5rem;
}

/* ---------- Section Marque ---------- */
.brand-badge {
  display: inline-block;
  border: 2px solid #c0392b;
  color: #c0392b;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: .5rem 1.5rem;
  border-radius: 6px;
  margin-top: 1rem;
}

/* ---------- Section avis ---------- */
.avis-block {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  border-left: 5px solid #c0392b;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.avis-block p { font-size: 1.05rem; color: #333; font-style: italic; }
.avis-stars   { color: #c0392b; font-size: 1.2rem; margin-bottom: .75rem; }

/* ---------- Zone d'intervention ---------- */
.zone-text {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
  color: rgba(255,255,255,.88);
}

.villes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

.ville-tag {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
}

/* ---------- Actualités ---------- */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.actu-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
}

.actu-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.actu-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.actu-card-body {
  padding: 1.25rem;
}

.actu-cat {
  display: inline-block;
  background: #fde8e6;
  color: #c0392b;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .2rem .6rem;
  border-radius: 3px;
  margin-bottom: .6rem;
}

.actu-card h3 { font-size: .98rem; margin-bottom: .5rem; }
.actu-card p  { font-size: .84rem; color: #555; }

/* ---------- Infos pratiques ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-block h3 {
  font-size: 1rem;
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #c0392b;
  display: inline-block;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: .92rem;
}

.contact-line span { font-size: 1.1rem; }

.horaires-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.horaires-table td { padding: .4rem .5rem; border-bottom: 1px solid #e5e5e5; }
.horaires-table td:first-child { font-weight: 600; width: 60%; }
.closed { color: #c0392b; }

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* ---------- CTA bande ---------- */
.cta-band {
  background: #c0392b;
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
}

.cta-band h2 { margin-bottom: .75rem; }
.cta-band p  { margin-bottom: 1.5rem; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  display: block;
}

.footer-logo span { color: #c0392b; }

.footer-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .5rem;
  transition: color .2s;
}

.footer-col a:hover { color: #c0392b; }

.footer-col p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,.45);
  transition: color .2s;
}

.footer-bottom a:hover { color: #c0392b; }

.made-by { color: rgba(255,255,255,.45); }
.made-by a { color: rgba(255,255,255,.65); font-weight: 600; }
.made-by a:hover { color: #c0392b; }

/* ---------- Page mentions légales ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #c0392b;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin: 2rem 0 .6rem;
  color: #c0392b;
}

.legal-content p { font-size: .92rem; color: #444; }
.legal-content a { color: #c0392b; text-decoration: underline; }

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

/* Tablette ≤ 1024px */
@media (max-width: 1024px) {
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }
  .intro-grid    { grid-template-columns: 1fr; }
  .intro-grid img { height: 280px; }
  .ramonage-grid { grid-template-columns: 1fr; }
  .ramonage-grid img { height: 260px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .realisations-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; }
  .actu-grid     { grid-template-columns: 1fr 1fr; }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  /* Header / nav mobile */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    padding: 1rem 1.25rem;
  }

  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
  }

  .nav-list li { width: 100%; }

  .nav-list a {
    display: block;
    padding: .65rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }

  .nav-cta { margin-top: .75rem; }

  /* Hero */
  .hero { min-height: 70vh; }
  .hero-bg { background-position: 60% center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }

  /* Cartes */
  .cards-grid--4,
  .cards-grid--3,
  .cards-grid--6,
  .cards-grid--2 { grid-template-columns: 1fr; }

  .realisations-cards { grid-template-columns: 1fr 1fr; }

  /* Actu */
  .actu-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Misc */
  .section { padding: 3rem 0; }
  .btn-group { flex-direction: column; align-items: flex-start; }
}

/* Très petit mobile ≤ 420px */
@media (max-width: 420px) {
  .realisations-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { border-right: none; }
}
