/* ===== Variables & reset ===== */
:root {
  --bleu: #0d3b66;
  --bleu-clair: #1d70b8;
  --accent: #f4a300;
  --accent-fonce: #d98c00;
  --rouge: #e63946;
  --gris: #f4f6fa;
  --gris-bord: #e2e8f0;
  --texte: #1a2233;
  --texte-doux: #5a6477;
  --blanc: #ffffff;
  --radius: 14px;
  --ombre: 0 10px 30px rgba(13, 59, 102, 0.10);
  --ombre-forte: 0 14px 40px rgba(13, 59, 102, 0.18);
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  line-height: 1.6;
  background: var(--blanc);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

section { padding: 72px 0; }

h1, h2, h3 { line-height: 1.2; color: var(--bleu); }
h2.titre { font-size: clamp(1.6rem, 3vw, 2.3rem); text-align: center; margin-bottom: 12px; }
.sous-titre { text-align: center; color: var(--texte-doux); max-width: 620px; margin: 0 auto 48px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-tel { background: var(--accent); color: #20160a; box-shadow: 0 8px 20px rgba(244,163,0,.35); }
.btn-tel:hover { background: var(--accent-fonce); }
.btn-ghost { background: transparent; color: var(--blanc); border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-bleu { background: var(--bleu-clair); color: #fff; }
.btn-bleu:hover { background: var(--bleu); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-bord);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-weight: 800; font-size: 1.25rem; color: var(--bleu); line-height: 1.1; }
.logo .hl { color: var(--accent); }
.logo .slogan {
  font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  background: linear-gradient(90deg, #0d3b66 0%, #1d70b8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* version plus claire pour rester visible sur le footer sombre */
.footer .logo .slogan { background: linear-gradient(90deg, #6fa8da 0%, #bfe0ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; color: var(--texte); transition: color .15s; }
.nav a:hover { color: var(--bleu-clair); }
.nav .btn-tel { padding: 10px 18px; }
.burger { display: none; background: none; border: none; cursor: pointer; font-size: 1.7rem; color: var(--bleu); }

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

/* ===== Hero ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(13, 59, 102, .78) 0%, rgba(29, 112, 184, .62) 100%),
    url("../images/plombier-hero.jpg") center / cover no-repeat;
  color: #fff; position: relative; overflow: hidden;
  min-height: 90vh;                  /* grand hero, sans remplir tout l'écran */
  min-height: 90svh;
  display: flex; align-items: center;
  padding: 80px 0 56px;              /* marge haute pour passer sous le header */
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; background: rgba(244,163,0,.18); border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.15rem; opacity: .95; margin-bottom: 32px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero-points li { list-style: none; font-weight: 600; }
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* ===== Services ===== */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.carte {
  background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--ombre); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.carte .ico {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.9rem; margin-bottom: 18px; background: var(--gris);
}
.carte.plomberie .ico { background: #e3f2fd; }
.carte.electricite .ico { background: #fff5e0; }
.carte.serrurerie .ico { background: #fde8e8; }
.carte h3 { font-size: 1.35rem; margin-bottom: 10px; }
.carte p { color: var(--texte-doux); margin-bottom: 18px; flex-grow: 1; }
.carte ul { list-style: none; margin-bottom: 22px; }
.carte ul li { padding: 4px 0; padding-left: 24px; position: relative; font-size: .95rem; }
.carte ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.carte .lien-carte { font-weight: 700; color: var(--bleu-clair); }

/* ===== Atouts ===== */
.atouts { background: var(--gris); }
.grid-atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.atout .num { font-size: 2.4rem; }
.atout h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.atout p { color: var(--texte-doux); font-size: .92rem; }

/* ===== Étapes ===== */
.grid-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.etape { text-align: center; padding: 0 10px; }
.etape .cercle {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--bleu); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.3rem;
}
.etape h3 { font-size: 1.1rem; margin-bottom: 8px; }
.etape p { color: var(--texte-doux); font-size: .92rem; }

/* ===== Zone ===== */
.zone { background: var(--bleu); color: #fff; }
.zone h2.titre, .zone .sous-titre { color: #fff; }
.zone .sous-titre { opacity: .9; }
.tags-zone { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }
.tags-zone span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}

/* ===== CTA final ===== */
.cta-final { text-align: center; background: linear-gradient(135deg, #f4a300, #d98c00); color: #20160a; }
.cta-final h2 { color: #20160a; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-final p { margin-bottom: 28px; font-weight: 600; }
.cta-final .btn-tel { background: var(--bleu); color: #fff; box-shadow: 0 10px 24px rgba(13,59,102,.3); }
.cta-final .btn-tel:hover { background: #0a2d4f; }

/* ===== Page service (intérieures) ===== */
.page-hero {
  background: linear-gradient(135deg, #0d3b66 0%, #1d70b8 100%); color: #fff;
  min-height: 90vh; min-height: 90svh;   /* grand hero (photo + annonce), sans remplir tout l'écran */
  display: flex; align-items: center;
  padding: 80px 0 56px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { opacity: .95; max-width: 640px; font-size: 1.1rem; margin-bottom: 26px; }
.fil { font-size: .88rem; opacity: .8; margin-bottom: 18px; }
.fil a:hover { text-decoration: underline; }

.deux-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.bloc-texte h2 { font-size: 1.6rem; margin: 28px 0 12px; }
.bloc-texte h2:first-child { margin-top: 0; }
.bloc-texte p { color: var(--texte-doux); margin-bottom: 14px; }
.bloc-texte ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.bloc-texte ul li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--gris-bord); }
.bloc-texte ul li::before { content: "✓"; position: absolute; left: 0; color: #2e9e5b; font-weight: 800; }

.aside {
  position: sticky; top: 92px; background: var(--gris); border: 1px solid var(--gris-bord);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--ombre);
}
.aside h3 { font-size: 1.25rem; margin-bottom: 10px; }
.aside p { color: var(--texte-doux); margin-bottom: 18px; font-size: .95rem; }
.aside .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.aside .petit { text-align: center; font-size: .82rem; color: var(--texte-doux); }

.tarifs { background: var(--gris); }
.table-tarifs {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--ombre); max-width: 760px; margin: 0 auto;
}
.table-tarifs .ligne { display: flex; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--gris-bord); }
.table-tarifs .ligne:last-child { border-bottom: none; }
.table-tarifs .ligne span:first-child { font-weight: 600; }
.table-tarifs .ligne span:last-child { color: var(--bleu-clair); font-weight: 700; }
.note-tarif { text-align: center; color: var(--texte-doux); font-size: .85rem; margin-top: 16px; }

/* ===== Footer ===== */
.footer { background: #0a2740; color: #cdd9e5; padding: 56px 0 26px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer .cols.cols-2 { grid-template-columns: 2fr 1fr; }
.footer .cols.cols-parcours { grid-template-columns: 1.5fr 1.7fr 1fr; }

/* Timeline "Notre parcours" dans le footer */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: rgba(255, 255, 255, .15); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #0a2740; }
.timeline .an { display: block; font-weight: 800; color: #fff; font-size: .92rem; }
.timeline .ev { display: block; font-size: .82rem; color: #cdd9e5; line-height: 1.45; margin-top: 2px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer a { color: #cdd9e5; display: block; padding: 4px 0; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer p { font-size: .92rem; opacity: .85; }
.footer .bas { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; text-align: center; font-size: .85rem; opacity: .7; }

/* ===== Bouton appel flottant mobile ===== */
.appel-flottant {
  display: none; position: fixed; bottom: 18px; left: 16px; right: 16px; z-index: 60;
  justify-content: center; background: var(--accent); color: #20160a;
  padding: 15px; border-radius: 999px; font-weight: 800; box-shadow: var(--ombre-forte);
}

/* ===== Formulaire de contact ===== */
.contact { background: var(--gris); }
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 980px; margin: 0 auto; }
.form-infos h3 { font-size: 1.4rem; margin-bottom: 14px; }
.form-infos p { color: var(--texte-doux); margin-bottom: 22px; }
.form-infos .ligne-info { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.form-infos .ligne-info .b { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--ombre); flex-shrink: 0; }
.form-infos .ligne-info b { display: block; color: var(--bleu); }
.form-infos .ligne-info span { color: var(--texte-doux); font-size: .92rem; }
form.contact-form { background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--radius); padding: 30px; box-shadow: var(--ombre); }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gris-bord); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fbfcfe; transition: border .15s, box-shadow .15s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--bleu-clair); box-shadow: 0 0 0 3px rgba(29,112,184,.15);
}
.champ textarea { resize: vertical; min-height: 110px; }
form.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--texte-doux); text-align: center; margin-top: 12px; }
.form-ok { background: #e6f7ed; border: 1px solid #b6e3c8; color: #1d6b3e; padding: 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.hidden { display: none; }

/* ===== Grille villes ===== */
.villes-intro { background: var(--gris); }
.dept-bloc { margin-bottom: 40px; }
.dept-bloc h3 { font-size: 1.3rem; margin-bottom: 8px; border-left: 4px solid var(--accent); padding-left: 12px; }
.dept-bloc .dept-note { color: var(--texte-doux); font-size: .9rem; margin-bottom: 18px; padding-left: 16px; }
.grid-villes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ville-carte {
  background: #fff; border: 1px solid var(--gris-bord); border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 4px 14px rgba(13,59,102,.06); transition: transform .15s, box-shadow .15s;
}
.ville-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.ville-carte b { display: block; color: var(--bleu); margin-bottom: 8px; }
.ville-carte a { display: inline-block; font-size: .85rem; margin: 2px 8px 2px 0; color: var(--bleu-clair); font-weight: 600; }
.ville-carte a:hover { text-decoration: underline; }

/* Liens villes en bas des pages métier */
.maillage { background: var(--gris); }
.maillage .liste-liens { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; max-width: 920px; margin: 0 auto; }
.maillage .liste-liens a { font-size: .9rem; color: var(--bleu-clair); font-weight: 600; }
.maillage .liste-liens a:hover { text-decoration: underline; }

/* ============================================================
   THÈME PLOMBERIE  (.theme-plomberie) — bleu / blanc,
   boutons d'appel verts clignotants, numéros animés
   ============================================================ */
.theme-plomberie {
  /* accents en bleu au lieu de l'orange */
  --accent: #1d70b8;
  --accent-fonce: #0d3b66;
  background: #fff;
}

/* Boutons d'appel -> vert qui clignote */
@keyframes clignoteVert {
  0%, 100% { background: #18b84a; box-shadow: 0 0 0 0 rgba(24, 184, 74, .55); }
  50%      { background: #0e9c3a; box-shadow: 0 0 0 12px rgba(24, 184, 74, 0); }
}
.theme-plomberie .btn-tel,
.theme-plomberie .cta-final .btn-tel,
.theme-plomberie .appel-flottant {
  background: #18b84a;
  color: #fff;
  animation: clignoteVert 1.1s ease-in-out infinite;
}
.theme-plomberie .btn-tel:hover,
.theme-plomberie .appel-flottant:hover { background: #0e9c3a; }

/* Petite animation sur les numéros de téléphone (liens tel non-boutons) */
@keyframes pulseNumero {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.09); }
}
.theme-plomberie a[href^="tel:"]:not(.btn) {
  display: inline-block;
  font-weight: 800;
  animation: pulseNumero 1.4s ease-in-out infinite;
}

/* Image de fond du hero sur TOUTES les pages plomberie (métier + villes) */
.theme-plomberie .page-hero {
  background:
    linear-gradient(135deg, rgba(13, 59, 102, .86) 0%, rgba(29, 112, 184, .74) 100%),
    url("../images/plombier-hero.jpg") center / cover no-repeat;
}

/* Section CTA finale en bleu/blanc (au lieu du dégradé orange) */
.theme-plomberie .cta-final {
  background: linear-gradient(135deg, #0d3b66 0%, #1d70b8 100%);
  color: #fff;
}
.theme-plomberie .cta-final h2 { color: #fff; }

/* Respect des préférences d'accessibilité (réduction des animations) */
@media (prefers-reduced-motion: reduce) {
  .theme-plomberie .btn-tel,
  .theme-plomberie .cta-final .btn-tel,
  .theme-plomberie .appel-flottant,
  .theme-plomberie a[href^="tel:"]:not(.btn) { animation: none; }
}

/* ============================================================
   THÈME SERRURERIE (.theme-serrurerie) — duo turquoise / blanc,
   boutons d'appel verts clignotants, numéros animés
   ============================================================ */
.theme-serrurerie {
  --accent: #0d9488;        /* turquoise */
  --accent-fonce: #0f766e;
  background: #fff;
}
.theme-serrurerie .btn-tel,
.theme-serrurerie .appel-flottant {
  background: #18b84a;
  color: #fff;
  animation: clignoteVert 1.1s ease-in-out infinite;
}
.theme-serrurerie .btn-tel:hover,
.theme-serrurerie .appel-flottant:hover { background: #0e9c3a; }
.theme-serrurerie a[href^="tel:"]:not(.btn) {
  display: inline-block;
  font-weight: 800;
  animation: pulseNumero 1.4s ease-in-out infinite;
}
/* Image de fond du hero sur toutes les pages serrurerie (voile turquoise) */
.theme-serrurerie .page-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .88) 0%, rgba(13, 148, 136, .76) 100%),
    url("../images/serrurier-hero.jpg") center / cover no-repeat;
}
/* Tuiles de prestations : icône sur fond turquoise clair */
.theme-serrurerie .service-item .ic { background: #ccf2ee; }
/* Slogan du logo en dégradé turquoise */
.theme-serrurerie .logo .slogan { background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .theme-serrurerie .btn-tel,
  .theme-serrurerie .appel-flottant,
  .theme-serrurerie a[href^="tel:"]:not(.btn) { animation: none; }
}

/* ============================================================
   THÈME ÉLECTRICITÉ (.theme-electricite) — duo ambre / blanc,
   boutons d'appel verts clignotants, numéros animés
   ============================================================ */
.theme-electricite {
  --accent: #f59e0b;        /* ambre / jaune électrique */
  --accent-fonce: #d97706;
  background: #fff;
}
.theme-electricite .btn-tel,
.theme-electricite .appel-flottant {
  background: #18b84a;
  color: #fff;
  animation: clignoteVert 1.1s ease-in-out infinite;
}
.theme-electricite .btn-tel:hover,
.theme-electricite .appel-flottant:hover { background: #0e9c3a; }
.theme-electricite a[href^="tel:"]:not(.btn) {
  display: inline-block;
  font-weight: 800;
  animation: pulseNumero 1.4s ease-in-out infinite;
}
/* Image de fond du hero (voile ambre foncé pour lisibilité du texte blanc) */
.theme-electricite .page-hero {
  background:
    linear-gradient(135deg, rgba(120, 53, 15, .86) 0%, rgba(217, 119, 6, .76) 100%),
    url("../images/electricien-hero.jpg") center / cover no-repeat;
}
.theme-electricite .service-item .ic { background: #fef3c7; }
.theme-electricite .logo .slogan { background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .theme-electricite .btn-tel,
  .theme-electricite .appel-flottant,
  .theme-electricite a[href^="tel:"]:not(.btn) { animation: none; }
}

/* ===== Grille de prestations (tuiles cliquables / accordéon) ===== */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 22px; align-items: start; }
.service-item {
  background: #fff; border: 1px solid var(--gris-bord); border-radius: 12px;
  box-shadow: 0 3px 12px rgba(13, 59, 102, .05);
  transition: box-shadow .15s, border-color .15s;
}
.service-item:hover { border-color: var(--bleu-clair); box-shadow: var(--ombre); }
.service-item[open] { border-color: var(--bleu-clair); box-shadow: var(--ombre); }
.service-item summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
  padding: 13px 15px; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--texte);
}
.service-item summary::-webkit-details-marker { display: none; }
.service-item .ic {
  flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 1.4rem; background: #e3f2fd; border-radius: 10px;
}
.service-item .lbl { flex: 1; }
.service-item .chev { margin-left: auto; color: var(--bleu-clair); font-size: .85rem; transition: transform .2s; }
.service-item[open] .chev { transform: rotate(180deg); }
.service-desc { margin: 0; padding: 0 16px 16px 71px; color: var(--texte-doux); font-size: .9rem; line-height: 1.55; }
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-desc { padding-left: 16px; }
}

/* ===== Section "Notre parcours" : frise chronologique animée ===== */
.parcours-section { background: var(--gris); }
.frise { position: relative; max-width: 840px; margin: 12px auto 0; }
.frise::before {
  content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--bleu-clair), var(--accent)); transform: translateX(-50%); border-radius: 3px;
}
.frise-item {
  position: relative; width: 50%; padding: 12px 38px; box-sizing: border-box;
  opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease;
}
.frise-item.visible { opacity: 1; transform: translateY(0); }
.frise-item:nth-child(odd) { left: 0; text-align: right; }
.frise-item:nth-child(even) { left: 50%; text-align: left; }
.frise-item::after {
  content: ""; position: absolute; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--accent); z-index: 2;
}
.frise-item:nth-child(odd)::after { right: -9px; }
.frise-item:nth-child(even)::after { left: -9px; }
.frise-an { font-size: 1.5rem; font-weight: 800; color: var(--bleu); margin-bottom: 6px; }
.frise-card {
  display: inline-block; background: #fff; border: 1px solid var(--gris-bord); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--ombre); color: var(--texte-doux); font-size: .95rem; line-height: 1.5;
  max-width: 320px;
}
.frise-passion {
  text-align: center; font-style: italic; font-weight: 700; color: var(--bleu);
  font-size: 1.15rem; margin-top: 32px;
}
@media (max-width: 700px) {
  .frise::before { left: 9px; }
  .frise-item,
  .frise-item:nth-child(odd),
  .frise-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 10px 0 10px 36px; }
  .frise-item::after,
  .frise-item:nth-child(odd)::after,
  .frise-item:nth-child(even)::after { left: 1px; right: auto; }
  .frise-card { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .frise-item { opacity: 1; transform: none; transition: none; }
}

/* ===== Numéro de confiance (sous le bloc plomberie) ===== */
.numero-confiance { display: inline-block; margin-top: 2px; font-size: 1.7rem; font-weight: 800; color: #18b84a; letter-spacing: .5px; }
.numero-confiance:hover { text-decoration: underline; }

/* Lien ville -> page département */
.lien-dept { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--accent); }
.lien-dept:hover { text-decoration: underline; }

/* ===== Bandeau défilant : assurances ===== */
.bandeau-assurances { background: #fff; padding: 20px 0; border-top: 1px solid var(--gris-bord); border-bottom: 1px solid var(--gris-bord); overflow: hidden; }
.bandeau-assurances .titre-bandeau { text-align: center; font-size: .78rem; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-weight: 700; }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: defileAssur 45s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
@keyframes defileAssur { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.assur-chip {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 22px; margin-right: 16px; background: #eef2f7;
  border: 1px solid var(--gris-bord); border-radius: 10px;
  box-shadow: 0 3px 10px rgba(13, 59, 102, .06);
}
.assur-chip img { width: 30px; height: 30px; object-fit: contain; display: block; flex-shrink: 0; margin-right: 8px; }
.assur-nom { font-weight: 800; color: var(--bleu); white-space: nowrap; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ===== Avis clients défilants ===== */
.avis-section { background: linear-gradient(180deg, var(--gris), #fff); overflow: hidden; }
.avis-note { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 6px auto 8px; flex-wrap: wrap; text-align: left; }
.avis-note-chiffre { font-size: 3.4rem; font-weight: 800; color: var(--bleu); line-height: 1; }
.avis-note-chiffre span { font-size: 1.35rem; color: var(--texte-doux); font-weight: 600; }
.avis-note-etoiles { font-size: 1.5rem; letter-spacing: 2px; }
.avis-note-etoiles .et { color: var(--accent); }
.avis-note-sous { color: var(--texte-doux); font-size: .95rem; margin-top: 2px; }
.avis-note-sous b { color: var(--texte); }

.avis-marquee { margin: 16px 0; padding: 6px 0; }
.avis-marquee .marquee-track { animation-duration: 70s; }

.avis-card {
  flex: 0 0 auto; width: 320px; margin: 0 10px;
  background: #fff; border: 1px solid var(--gris-bord); border-radius: var(--radius);
  box-shadow: var(--ombre); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 10px; white-space: normal;
}
.avis-head { display: flex; align-items: center; gap: 12px; }
.avis-ava { width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-transform: uppercase; }
.avis-id { display: flex; flex-direction: column; line-height: 1.3; font-size: .92rem; }
.avis-id b { color: var(--texte); }
.avis-loc { color: var(--texte-doux); font-size: .76rem; }
.avis-verif { color: #1a8f4c; font-weight: 600; white-space: nowrap; }
.avis-stars { font-size: 1.05rem; letter-spacing: 1px; }
.avis-stars .et { color: var(--accent); }
.avis-stars .et.off { color: var(--gris-bord); }
.avis-txt { color: var(--texte); font-size: .93rem; line-height: 1.55; flex-grow: 1; }
.avis-date { color: var(--texte-doux); font-size: .78rem; }

/* Formulaire "laisser un avis" */
.avis-form-wrap { max-width: 640px; margin: 34px auto 0; background: #fff; border: 1px solid var(--gris-bord);
  border-radius: var(--radius); box-shadow: var(--ombre); padding: 30px; }
.avis-form-wrap h3 { text-align: center; font-size: 1.4rem; margin-bottom: 6px; }
.avis-form-wrap > p { text-align: center; color: var(--texte-doux); margin-bottom: 22px; }
.avis-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.avis-form input, .avis-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--gris-bord);
  border-radius: 10px; font: inherit; background: var(--gris); }
.avis-form input:focus, .avis-form textarea:focus { outline: none; border-color: var(--bleu-clair); background: #fff; }
.avis-form .btn { width: 100%; justify-content: center; }
.avis-form .form-note { text-align: center; color: var(--texte-doux); font-size: .82rem; margin-top: 12px; }

/* Sélecteur d'étoiles (note du visiteur) */
.note-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.note-input input { position: absolute; opacity: 0; pointer-events: none; }
.note-input label { font-size: 1.9rem; line-height: 1; color: var(--gris-bord); cursor: pointer; transition: color .12s; }
.note-input label:hover, .note-input label:hover ~ label,
.note-input input:checked ~ label { color: var(--accent); }

@media (max-width: 560px) {
  .avis-card { width: 80vw; }
  .avis-champs { grid-template-columns: 1fr; }
  .avis-note { gap: 12px; }
  .avis-note-chiffre { font-size: 2.8rem; }
}

/* ===== Pastille téléphone flottante (suit le défilement) ===== */
@keyframes pulseTel {
  0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 0 rgba(24,184,74,.55); }
  50%      { box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 16px rgba(24,184,74,0); }
}
@keyframes floatTel {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.tel-flottant {
  position: fixed; right: 20px; bottom: 26px; z-index: 80;
  width: 62px; height: 62px; border-radius: 50%;
  background: #18b84a; color: #fff; text-decoration: none;
  display: flex !important; align-items: center; justify-content: center;
  font-size: 1.7rem; line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; pointer-events: none;       /* caché en haut de page */
  transition: opacity .35s ease;
  animation: none !important;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.tel-flottant.dragging,
.tel-flottant.visible.dragging { cursor: grabbing; animation: none !important; transform: none !important; transition: none !important; }
.tel-flottant.visible {                                        /* apparaît au défilement */
  opacity: 1; visibility: visible; pointer-events: auto;
  animation: pulseTel 1.8s ease-in-out infinite, floatTel 2.2s ease-in-out infinite !important;
}
.tel-flottant:hover { background: #0e9c3a; }
@media (prefers-reduced-motion: reduce) { .tel-flottant.visible { animation: none !important; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-services { grid-template-columns: 1fr; }
  .grid-atouts { grid-template-columns: repeat(2, 1fr); }
  .grid-etapes { grid-template-columns: repeat(2, 1fr); }
  /* Mobile-first : le bloc "Appeler" remonte en haut */
  .deux-col { display: flex; flex-direction: column; gap: 28px; }
  .deux-col .aside { order: -1; position: static; }
  .aside { position: static; }
  .footer .cols,
  .footer .cols.cols-2,
  .footer .cols.cols-parcours { grid-template-columns: 1fr; gap: 28px; }
  .form-wrap { grid-template-columns: 1fr; gap: 28px; }
  .nav { display: none; }
  .nav.ouvert {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gris-bord); padding: 10px 20px 20px;
  }
  .nav.ouvert a { padding: 12px 0; border-bottom: 1px solid var(--gris-bord); width: 100%; }
  .nav.ouvert .btn-tel { margin-top: 12px; justify-content: center; }
  .burger { display: block; }
  .appel-flottant { display: flex; }
  .tel-flottant { bottom: 88px; width: 54px; height: 54px; font-size: 1.5rem; }
  body { padding-bottom: 70px; }
}
@media (max-width: 520px) {
  .grid-atouts { grid-template-columns: 1fr; }
  .grid-etapes { grid-template-columns: 1fr; }
  section { padding: 46px 0; }

  /* Boutons pleine largeur et plus gros au doigt */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero .btn,
  .cta-final .btn { width: 100%; justify-content: center; }
  .btn { padding: 16px 22px; font-size: 1.05rem; }

  /* Titres et textes adaptés au petit écran */
  .hero h1 { font-size: 1.85rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .hero p, .page-hero p { font-size: 1.02rem; }
  .bloc-texte h2 { font-size: 1.35rem; }

  /* Hero points en colonne lisible */
  .hero-points { flex-direction: column; gap: 8px; margin-top: 26px; }

  /* La longue liste de villes devient une zone déroulante compacte */
  .maillage .liste-liens {
    flex-direction: column; flex-wrap: nowrap; align-items: flex-start;
    gap: 0; max-height: 280px; overflow-y: auto;
    background: #fff; border: 1px solid var(--gris-bord); border-radius: 12px;
    padding: 6px 16px; text-align: left;
  }
  .maillage .liste-liens a { display: block; width: 100%; padding: 11px 0; border-bottom: 1px solid var(--gris-bord); }
  .maillage .liste-liens a:last-child { border-bottom: none; }

  /* Tableau de tarifs plus lisible */
  .table-tarifs .ligne { padding: 14px 16px; font-size: .95rem; }

  /* Champs de formulaire confortables */
  .champ input, .champ select, .champ textarea { font-size: 1.05rem; padding: 14px; }
}
