/* Dépannage Électricien Rosny — feuille unique, mobile-first, zéro dépendance */
:root {
  --bleu: #0f2b46;
  --bleu-clair: #1d4e7e;
  --jaune: #ffc934;
  --rouge: #d7263d;
  --gris: #f4f6f8;
  --texte: #22303c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texte);
  line-height: 1.65;
  background: #fff;
}
.conteneur { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* Bandeau urgence */
.bandeau {
  background: var(--rouge);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.bandeau a { color: #fff; text-decoration: underline; }

/* En-tête */
header { background: var(--bleu); color: #fff; padding: 14px 0; }
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; }
.logo span { color: var(--jaune); }
.tel-entete {
  background: var(--jaune);
  color: var(--bleu);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
nav.principal { background: var(--bleu-clair); }
nav.principal ul { display: flex; flex-wrap: wrap; list-style: none; gap: 2px; }
nav.principal a {
  display: block; padding: 10px 14px; color: #fff;
  text-decoration: none; font-size: 0.92rem;
}
nav.principal a:hover, nav.principal a.actif { background: rgba(255,255,255,0.14); }

/* Héros */
.heros { background: linear-gradient(160deg, var(--bleu) 0%, var(--bleu-clair) 100%); color: #fff; padding: 48px 0; }
.heros h1 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 14px; }
.heros p.sous-titre { font-size: 1.1rem; opacity: 0.92; margin-bottom: 24px; max-width: 640px; }
.cta-groupe { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-appel {
  background: var(--jaune); color: var(--bleu);
  font-size: 1.2rem; font-weight: 800;
  padding: 16px 28px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.btn-secondaire { color: #fff; text-decoration: underline; font-weight: 600; }
.badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 0.92rem; }
.badges div { display: flex; align-items: center; gap: 7px; }

/* Sections */
section { padding: 44px 0; }
section.grise { background: var(--gris); }
h2 { font-size: 1.5rem; color: var(--bleu); margin-bottom: 18px; }
h3 { font-size: 1.15rem; color: var(--bleu); margin: 18px 0 8px; }
p + p { margin-top: 12px; }
ul.liste { margin: 12px 0 12px 22px; }
ul.liste li { margin-bottom: 7px; }

/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 10px; }
.carte {
  background: #fff; border: 1px solid #e3e8ee; border-radius: 12px;
  padding: 22px; box-shadow: 0 2px 8px rgba(15,43,70,0.06);
}
.carte h3 { margin-top: 0; }
.carte a.lien { color: var(--bleu-clair); font-weight: 700; text-decoration: none; }
.carte a.lien:hover { text-decoration: underline; }

/* Étapes */
.etapes { counter-reset: etape; display: grid; gap: 14px; margin-top: 10px; }
.etape { display: flex; gap: 14px; align-items: flex-start; }
.etape::before {
  counter-increment: etape; content: counter(etape);
  background: var(--jaune); color: var(--bleu); font-weight: 800;
  min-width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Avis */
.avis { background: #fff; border-left: 4px solid var(--jaune); padding: 16px 18px; border-radius: 0 10px 10px 0; margin-top: 14px; box-shadow: 0 2px 8px rgba(15,43,70,0.06); }
.avis .auteur { font-size: 0.88rem; color: #5b6b7b; margin-top: 8px; }

/* FAQ */
details { background: #fff; border: 1px solid #e3e8ee; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; color: var(--bleu); cursor: pointer; }
details p { margin-top: 10px; }

/* Encadré appel */
.encart-appel {
  background: var(--bleu); color: #fff; border-radius: 14px;
  padding: 30px; text-align: center; margin: 10px 0;
}
.encart-appel h2 { color: #fff; }
.encart-appel .btn-appel { display: inline-block; margin-top: 14px; }

/* Formulaire */
form { display: grid; gap: 14px; max-width: 560px; }
label { font-weight: 700; font-size: 0.95rem; }
input, textarea, select {
  width: 100%; padding: 12px; border: 1px solid #c9d3dd; border-radius: 8px;
  font-size: 1rem; font-family: inherit;
}
button[type="submit"] {
  background: var(--bleu); color: #fff; font-size: 1.05rem; font-weight: 700;
  padding: 14px; border: none; border-radius: 8px; cursor: pointer;
}

/* Pied de page */
footer { background: var(--bleu); color: #cfd9e3; padding: 34px 0; font-size: 0.92rem; margin-bottom: 64px; }
footer h4 { color: #fff; margin-bottom: 10px; }
footer a { color: #cfd9e3; }
.colonnes-pied { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }

/* Barre d'appel fixe mobile */
.barre-appel-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--rouge); text-align: center; padding: 12px;
}
.barre-appel-mobile a { color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; }

@media (min-width: 760px) {
  .heros h1 { font-size: 2.5rem; }
  .barre-appel-mobile { display: none; }
  footer { margin-bottom: 0; }
}
