/* COMPOSANTS PARTAGÉS : sélecteur de métier (onglets + tuiles), bloc « étape suivante »,
   ligne de réassurance, rangée d'appel à l'action, avatar. */

/* Onglets Dépannage / Chantier */
.tabs { display: inline-flex; background: var(--tabs-bg); padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 16px; }
.tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--text-2); min-height: 44px; }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,31,58,.08); }

/* Tuiles de métier (générées par js/tiles.js) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0;
  background: #fff; border: 1.5px solid var(--line-tile); border-radius: 16px; padding: 16px; min-height: 104px; text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: rise .5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * .05s);
}
.tile:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 14px 30px rgba(29,95,209,.16); }
.tile.on { border-color: var(--blue); background: var(--blue-soft); }
.tile.other { border-style: dashed; background: transparent; }
.tile-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; color: var(--muted); }
.tile.on .tile-ico { background: var(--blue); color: #fff; }
.tile b { font-size: 15px; font-weight: 700; }
.tile-sub { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* Bloc « étape suivante » affiché après le choix d'une tuile */
.next { margin-top: 16px; background: var(--ink); color: #fff; border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; animation: rise .35s ease both; }
.next[hidden] { display: none; }
.next p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.next b { color: var(--mint); }

/* Ligne de réassurance (coches vertes) */
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--green); }

/* Rangée d'appel à l'action en bas de section */
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.cta-row .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
.cta-row p { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.cta-row p svg { color: var(--green); }
.cta-row.center { justify-content: center; text-align: center; border-top: 0; padding-top: 0; }
.cta-row.dark { border-top-color: rgba(255,255,255,.14); }
.cta-row.dark p { color: var(--muted-lighter); }

/* Avatar rond à initiales */
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--font-display); }
