:root {
  --orange: #f77f00; --orange-d: #d96d00; --green: #009e60; --green-d: #007a4a;
  --bg: #fff8f0; --card: #fff; --text: #1f2937; --muted: #6b7280; --line: #ead9c4; --red: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px; background: #fff; border-bottom: 3px solid var(--orange); position: sticky; top: 0; z-index: 5; gap: 4px; overflow-x: auto; }
.top::-webkit-scrollbar { display: none; }
.logo { display: flex; align-items: center; gap: 5px; text-decoration: none; flex: none; }
.logo-mark { flex: none; border-radius: 9px; width: 26px; height: 26px; }
.logo-word { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.logo-word b { font-weight: 800; color: var(--orange-d); }
#nav a, #nav button { font-size: 15px; margin-left: 8px; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 24px; margin: 8px 0 12px; }
h2 { font-size: 19px; margin: 20px 0 8px; }
a { color: var(--green-d); }
.muted { color: var(--muted); font-size: 15px; }
.err { color: var(--red); font-weight: 600; margin: 8px 0; }

.btn { display: block; width: 100%; padding: 15px 18px; font-size: 18px; font-weight: 700; border: 0; border-radius: 12px; background: var(--orange); color: #fff; cursor: pointer; text-align: center; text-decoration: none; margin: 10px 0; }
.btn:hover { background: var(--orange-d); }
.btn.green { background: var(--green); } .btn.green:hover { background: var(--green-d); }
.btn.ghost { background: #fff; color: var(--text); border: 2px solid var(--line); }
.btn.small { display: inline-block; width: auto; padding: 8px 14px; font-size: 15px; margin: 0; }
.btn:disabled { opacity: .6; }
.big { padding: 26px 18px; font-size: 22px; }
.big small { display: block; font-weight: 400; font-size: 15px; opacity: .95; margin-top: 4px; }

label { display: block; font-weight: 600; margin: 14px 0 4px; }
input, textarea, select { width: 100%; padding: 13px; font: inherit; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); }
textarea { min-height: 90px; resize: vertical; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.cat { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 6px; text-align: center; font: inherit; font-size: 15px; cursor: pointer; color: var(--text); }
.cat .ico { display: block; font-size: 34px; margin-bottom: 4px; }
.cat.on { border-color: var(--green); background: #e8f8f0; font-weight: 700; }
.cat:hover { border-color: var(--orange); }

.pcard { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.pcard img, .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #eee; flex: none; }
.pcard b { font-size: 18px; }
.tag { display: inline-block; background: #fff1dc; color: #9a4b00; border-radius: 20px; padding: 2px 10px; font-size: 13px; margin: 2px 4px 2px 0; }
.dist { color: var(--green-d); font-weight: 700; }
.badge { background: var(--green); color: #fff; border-radius: 8px; font-size: 12px; padding: 2px 7px; margin-left: 6px; }
.detail { text-align: center; }
.detail .avatar { width: 130px; height: 130px; margin: 6px auto; display: block; }
.phone { font-size: 30px; font-weight: 800; color: var(--green-d); margin: 10px 0; letter-spacing: 1px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.otp { font-size: 30px; text-align: center; letter-spacing: 8px; }
.filters { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.filters select { width: auto; padding: 8px; }
.banner { background: #e8f8f0; border: 1px solid var(--green); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.warn { background: #fff4d6; border: 1px solid #f0c04a; border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-size: 15px; }
.preview { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: #eee; display: block; margin: 8px 0; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 18px; border-radius: 24px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 20; }
#toast.show { opacity: 1; }
.legal h2 { font-size: 17px; margin: 16px 0 4px; }
.legal p { margin: 4px 0; }

/* Inscription */
.steps { display: flex; justify-content: center; gap: 6px; margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.steps span { display: flex; align-items: center; gap: 5px; }
.steps span + span::before { content: ''; width: 18px; height: 2px; background: var(--line); margin-right: 1px; }
.steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.steps .now { color: var(--text); font-weight: 700; } .steps .now i { background: var(--orange); }
.steps .done i { background: var(--green); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.seg button { padding: 12px 6px; font: inherit; font-size: 15px; border: 2px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--text); }
.seg button.on { border-color: var(--orange); background: #fff1dc; font-weight: 700; }
.phonebox { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.phonebox:focus-within { border-color: var(--orange); }
.phonebox span { padding: 0 10px 0 12px; white-space: nowrap; font-weight: 600; }
.phonebox input { border: 0; border-radius: 0 10px 10px 0; }
.pw { position: relative; } .pw input { padding-right: 52px; }
.eye { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }

/* Bouton du haut */
.pill { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; font-size: 10px; text-decoration: none; box-shadow: 0 2px 6px rgba(247,127,0,.3); white-space: nowrap; }
.pill:hover { background: var(--orange-d); }
#nav a.pill { margin-left: 0; }

/* Petit bouton visuel pour une action isolée (retour, modifier, choisir…), au lieu d'un lien souligné */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--text); border: 2px solid var(--line); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--orange); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

/* Menus déroulants des métiers */
.grp { background: #fff; border: 2px solid var(--line); border-radius: 14px; margin: 10px 0; overflow: hidden; }
.grp[open] { border-color: var(--orange); }
.grp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 15px 14px; font-weight: 700; font-size: 18px; }
.grp summary::-webkit-details-marker { display: none; }
.grp summary span { flex: 1; }
.grp summary em { font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--green); border-radius: 12px; padding: 0 8px; }
.grp summary em:empty { display: none; }
.grp summary::after { content: '▾'; font-size: 22px; color: var(--orange); transition: transform .2s; }
.grp[open] summary::after { transform: rotate(180deg); }
.grp .grid { padding: 0 10px 12px; }

/* Fiche prestataire */
.howto { background: #fff1dc; border: 1px solid #f3c58a; border-radius: 12px; padding: 10px 14px; margin: 8px 0; line-height: 1.7; }
.chosen { background: #e8f8f0; border: 2px solid var(--green); border-radius: 12px; padding: 10px 14px; margin: 14px 0 4px; scroll-margin-top: 80px; }
.chosen .next { margin: 8px 0 0; font-size: 18px; color: var(--green-d); }
.savebar { position: sticky; bottom: 0; padding: 10px 0 12px; background: linear-gradient(to top, var(--bg) 75%, transparent); margin-top: 12px; }
.savebar .btn { margin: 0; box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
.photobox video { display: none; width: 240px; height: 240px; border-radius: 50%; object-fit: cover; background: #000; margin: 8px auto; transform: scaleX(-1); }
.photobox .preview { margin: 8px auto; width: 160px; height: 160px; }

/* Barre de bascule permanente de l'accueil */
.modebar { position: sticky; top: 61px; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg); padding: 10px 0 6px; margin: 0 0 4px; }
.modebar button { padding: 13px 6px; font: inherit; font-size: 15px; font-weight: 700; border: 2px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--text); }
.modebar button.on { background: var(--green); border-color: var(--green); color: #fff; }

/* Mon compte */
.idcard { display: flex; align-items: center; gap: 12px; }
.avatar-ph { display: flex; align-items: center; justify-content: center; font-size: 30px; background: #f1e6d8; }

/* Bouton flottant « Continuer vers l'inscription » (choix multiple des métiers) */
#contBar:not(:empty) { position: sticky; top: 112px; z-index: 3; }
.contbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #e8f8f0; border: 2px solid var(--green); border-radius: 14px; padding: 10px 14px; margin: 4px 0 10px; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.contbar span { font-weight: 700; color: var(--green-d); font-size: 14px; flex: 1 1 200px; }

/* Ville / quartier : suggestions cliquables uniquement */
.ta { position: relative; }
.ta input:disabled { background: #f3f3f3; color: var(--muted); }
.ta-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6; background: #fff; border: 2px solid var(--orange); border-radius: 12px; max-height: 240px; overflow-y: auto; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.ta-list.open { display: block; }
.ta-item { display: block; width: 100%; text-align: left; padding: 11px 14px; border: 0; background: #fff; font: inherit; font-size: 15px; cursor: pointer; border-bottom: 1px solid var(--line); }
.ta-item:last-child { border-bottom: 0; }
.ta-item:hover { background: #fff1dc; }
.ta-empty { padding: 11px 14px; color: var(--muted); font-size: 14px; }

/* Petite astuce au-dessus des champs ville/quartier */
.hint { font-size: 13px; color: var(--orange-d); margin: -2px 0 6px; }

/* Étoiles et notation */
.stars { color: #f59e0b; font-size: 17px; letter-spacing: 1px; }
.stars-line { display: inline-block; margin: 2px 0; }
.starpick { font-size: 34px; letter-spacing: 4px; margin: 6px 0 12px; }
.starpick .sp { background: none; border: 0; cursor: pointer; color: #f59e0b; padding: 0 2px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.tagpick .chip { font-weight: 600; }

/* En-tête : logo à gauche, bouton d'installation + connexion à droite */
.topright { display: flex; align-items: center; gap: 5px; flex: none; }
.install-pill { background: #fff; color: var(--green-d); border: 1px solid var(--green); box-shadow: none; cursor: pointer; font-family: inherit;
  padding: 3px 8px; font-size: 9px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.install-pill:hover { background: #e8f8f0; }

/* Petite fenêtre d'aide pour installer sur iPhone (Safari ne propose pas d'installation automatique) */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 30; padding: 16px; }
.iosCard { max-width: 360px; }
.iosCard p { margin: 10px 0; }

/* Très petits écrans (téléphones anciens, ~320 px) : encore un peu plus compact */
@media (max-width: 340px) {
  .logo-word { font-size: 14px; }
  .install-pill { font-size: 8px; padding: 2px 6px; }
  .pill { font-size: 9px; padding: 3px 7px; }
}

/* --- Retouches design (inspirées d'AlloVoisins, aucun changement de fonctionnement) --- */

/* 1. Icône ronde isolée (ex. Paramètres), toujours au même endroit */
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-title h1 { margin: 0; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 19px; text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--orange); background: #fff1dc; }

/* 2. Harmonisation des émojis utilisés comme icônes (boutons, étiquettes, puces) */
.btn, .chip, .pill, .tag, .cat, .modebar button { line-height: 1.3; }
.filters .chip { font-size: 14px; padding: 8px 14px; }

/* 3. Étoiles mises en avant sur les cartes de résultats */
.stars-line { display: inline-block; background: #fff8ec; border-radius: 8px; padding: 2px 8px; margin: 3px 0; }

/* 4. Fenêtre qui glisse depuis le bas (rayon, tri…) */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 25; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 640px; border-radius: 18px 18px 0 0; padding: 10px 16px 20px; box-shadow: 0 -6px 24px rgba(0,0,0,.2); animation: sheetUp .18s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet h2 { margin: 10px 0 12px; text-align: center; }
.sheet-opt { display: block; width: 100%; text-align: left; padding: 14px 12px; font: inherit; font-size: 17px; border: 0; border-top: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--text); }
.sheet-opt.on { color: var(--green-d); font-weight: 700; }
.sheet-opt:hover { background: #fff8ec; }

/* 5. État "aucun résultat" centré avec icône */
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-ico { display: block; font-size: 46px; margin-bottom: 10px; }
.empty-state p { margin: 4px 0; }

/* 6. WhatsApp en bouton secondaire (contour), Appeler reste le seul bouton plein */
.whatsapp-btn { color: #128c3e; border-color: #25d366; }
.whatsapp-btn:hover { background: #e9fbf0; }

/* Message sous le bouton "Utiliser ma position" (toujours visible, à côté du bouton) */
.gps-msg { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
.gps-msg:empty { display: none; }
.gps-msg.ok { color: var(--green-d); font-weight: 600; }
.gps-msg.err2 { color: var(--red); font-weight: 600; }

/* =====================================================================
   REFONTE VISUELLE (inspiration niveau de finition TaskRabbit)
   Uniquement l'habillage : aucun changement de fonctionnement.
   ===================================================================== */
:root {
  --bg: #f6f7f5; --line: #e6e8e3; --text: #17211b; --muted: #5f6b63;
  --shadow: 0 1px 2px rgba(16,24,20,.05), 0 4px 16px rgba(16,24,20,.06);
  --shadow-lg: 0 2px 4px rgba(16,24,20,.06), 0 10px 28px rgba(16,24,20,.10);
}
body { font-size: 16px; -webkit-font-smoothing: antialiased; }
main { max-width: 760px; padding: 16px 16px 8px; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

/* En-tête : blanc, ombre légère au lieu du trait orange */
.top { border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(16,24,20,.04); }

/* Boutons d'action : le vert de la barre de bascule devient la couleur d'action principale */
.btn { background: var(--green); border-radius: 14px; box-shadow: 0 2px 6px rgba(0,158,96,.25); }
.btn:hover { background: var(--green-d); }
.btn.ghost { box-shadow: none; }
.btn.big { padding: 18px; font-size: 19px; }

/* Cartes : ombres légères, bords arrondis, pas de bordure dure */
.card { border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.card-title { font-size: 17px; margin: 0 0 6px; }
.grp { border: 0; box-shadow: var(--shadow); border-radius: 16px; }
.grp[open] { box-shadow: 0 0 0 2px var(--orange), var(--shadow); }
.cat { border: 1.5px solid var(--line); }

/* ---------- Accueil ---------- */
.hero { background: linear-gradient(160deg, #fff 0%, #fff6ea 100%); border-radius: 22px; padding: 18px 16px 20px; box-shadow: var(--shadow); margin-bottom: 26px; }
.hero .modebar { position: static; background: transparent; padding: 0 0 14px; }
.hero-title { font-size: 30px; margin: 4px 0 8px; }
.hero-sub { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.hero-login { text-align: center; color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.sec-title { margin: 6px 0 12px; }
section { margin-bottom: 28px; }

/* Métiers les plus demandés : rangée qui défile au doigt */
.trend-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.trend-row::-webkit-scrollbar { display: none; }
.trend { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  background: #fff; border: 0; border-radius: 16px; padding: 12px; box-shadow: var(--shadow); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.trend b { line-height: 1.25; }
.trend-ico { font-size: 30px; }
.trend-badge { font-size: 11px; font-weight: 700; color: #b45309; background: #fff3dc; border-radius: 999px; padding: 2px 8px; }

/* Grandes cartes des familles de métiers */
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcard { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.gcard-img { aspect-ratio: 16 / 11; background: #eef0ec; overflow: hidden; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-ico { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 52px; }
.gcard-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.gcard-body b { font-size: 16px; line-height: 1.25; }
.gcard-body span { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Chiffres réels */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; background: var(--green-d); color: #fff; border-radius: 20px; padding: 18px 10px; text-align: center; }
.stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stats span { font-size: 13px; opacity: .92; }

/* Comment ça marche */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 620px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps li { position: relative; background: #fff; border-radius: 18px; padding: 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.how-ico { font-size: 34px; }
.how-n { position: absolute; top: 14px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.how-steps li b { font-size: 17px; }
.how-steps li span:last-child { color: var(--muted); font-size: 14px; }

/* Bandeau de confiance (honnête : aucune promesse de vérification ni de garantie) */
.trust { display: grid; gap: 8px; margin-bottom: 8px; }
.trust div { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; }
.trust span { font-size: 28px; grid-row: span 2; text-align: center; }
.trust b { font-size: 15px; line-height: 1.25; }
.trust small { font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (min-width: 620px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 6px 8px 26px; }

/* ---------- Résultats : cartes de profils ---------- */
.res-count { color: var(--muted); font-size: 14px; margin: 4px 2px 10px; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 620px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prow { display: flex; gap: 14px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.prow:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.prow-img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: #eee; flex: none; }
.prow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prow-name { font-size: 18px; }
.prow-dist { font-size: 13px; font-weight: 700; color: var(--green-d); background: #e8f8f0; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.prow-job { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-stars { font-size: 14px; }
.prow-place { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-cta { margin-top: 6px; align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--green-d); }
.prow .badge { align-self: flex-start; margin: 2px 0 0; }

/* ---------- Détail d'un profil ---------- */
.pdetail { text-align: center; padding: 24px 18px; }
.pdetail-img { width: 150px; height: 150px; border-radius: 28px; object-fit: cover; background: #eee; box-shadow: var(--shadow-lg); display: block; margin: 0 auto 14px; }
.pdetail-name { margin: 0 0 8px; }
.pdetail-jobs { margin-bottom: 8px; }
.pdetail-stars { font-size: 17px; margin-bottom: 10px; }
.pdetail-stars .stars { font-size: 22px; }
.pdetail-facts { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.pdetail-desc { margin: 0; line-height: 1.55; }
.cta-card { text-align: center; }
.cta-label { margin: 0; color: var(--muted); font-size: 14px; }
.cta-note { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: #13201a; color: #d6ddd8; margin-top: 30px; padding: 28px 16px 20px; }
.foot { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
@media (min-width: 620px) { .foot { grid-template-columns: repeat(4, 1fr); } }
.foot-col h3 { color: #fff; font-size: 14px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.foot-col a { display: block; color: #d6ddd8; text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-copy { max-width: 760px; margin: 22px auto 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #9fb0a6; }

/* =====================================================================
   MODIFICATION 6 : barre de navigation du bas, Mon compte en cartes, historique
   ===================================================================== */

/* Place pour la barre du bas (+ zone de sécurité des iPhone récents) */
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body.typing .bnav { display: none; }
body.typing { padding-bottom: 0; }
#toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
.savebar { bottom: calc(66px + env(safe-area-inset-bottom)); }
body.typing .savebar { bottom: 0; }

/* Barre de navigation fixe en bas (style WhatsApp) */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: #fff; display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: end; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line), 0 -4px 16px rgba(16,24,20,.06); }
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 4px 0; }
.bnav-ico { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .7; }
.bnav a.on { color: var(--green-d); }
.bnav a.on .bnav-ico { filter: none; opacity: 1; }
.bnav-plus { position: relative; }
.bnav-plus-btn { width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; font-weight: 400; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,158,96,.35), 0 0 0 5px #fff; }
.bnav-plus.on .bnav-plus-btn { background: var(--green-d); }

/* Bouton « Télécharger l'application » bien visible sur l'accueil */
.install-hero { display: flex; width: 100%; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 14px; padding: 11px 14px;
  border-radius: 14px; border: 2px dashed var(--green); background: #effaf4; color: var(--green-d); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.install-hero small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.install-hero:hover { background: #e2f6ea; }

/* ---------- Mon compte ---------- */
.acc-head { position: relative; text-align: center; padding: 26px 18px 20px; }
.acc-gear { position: absolute; top: 12px; right: 12px; }
.acc-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; box-shadow: var(--shadow-lg); background: #eee; }
.acc-photo-ph { display: grid; place-items: center; font-size: 54px; background: #f1ebe2; }
.acc-name { margin: 0; font-size: 24px; }
.acc-phone { margin: 2px 0 12px; color: var(--muted); }
.acc-block { display: flex; flex-direction: column; gap: 10px; }
.acc-block > .btn { margin: 4px 0 0; }
.acc-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.acc-title > span { width: 34px; height: 34px; border-radius: 10px; background: #f3f5f1; display: grid; place-items: center; font-size: 18px; flex: none; }
.acc-status { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.acc-status.on { background: #e3f7ec; color: var(--green-d); }
.acc-status.off { background: #f1f1ee; color: var(--muted); }
.acc-dl { margin: 0; display: grid; }
.acc-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-dl > div:first-child { border-top: 0; }
.acc-dl dt { color: var(--muted); }
.acc-dl dd { margin: 0; font-weight: 600; text-align: right; }
.mini-fiche { display: flex; gap: 12px; align-items: center; background: #f8f9f6; border-radius: 14px; padding: 10px; }
.mini-fiche img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #eee; flex: none; }
.mini-fiche b { font-size: 17px; }
.mini-stars { font-size: 14px; }
.acc-desc { margin: 0; line-height: 1.5; background: #f8f9f6; border-radius: 12px; padding: 10px 12px; }
.acc-settings { margin-top: 6px; }
.acc-logout { color: var(--red); border-color: #f3d3d3; }

/* Petites tuiles de chiffres (historique) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiles > div { background: #f8f9f6; border-radius: 14px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tiles b { font-size: 24px; font-weight: 800; color: var(--green-d); }
.tiles span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

/* Lignes de l'historique */
.hrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.acc-title + .hrow, .tiles + .hrow { border-top: 0; }
.hrow img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #eee; flex: none; }
.hrow-ico { width: 52px; height: 52px; border-radius: 12px; background: #fff3dc; display: grid; place-items: center; font-size: 26px; flex: none; }
.hrow > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hrow > div > span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .hrow-meta { font-size: 12.5px; color: var(--green-d); }

/* Disponibilité en un toucher, tout en haut de « Mon compte » */
.dispo { border-left: 6px solid var(--green); }
.dispo.off { border-left-color: #b8bdb6; background: #fafaf8; }
.dispo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dispo-row b { display: block; font-size: 17px; }
.dispo-row span { display: block; font-size: 14px; color: var(--muted); }
.dispo-help { margin: 10px 0 0; font-size: 14px; line-height: 1.45; background: #fff4e0; border-radius: 12px; padding: 10px 12px; }
/* Interrupteur : gros, facile à toucher */
.switch { flex: none; position: relative; width: 66px; height: 38px; border-radius: 999px; border: 0; background: #c9cec6; cursor: pointer; transition: background .2s; }
.switch i { position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: left .2s; }
.switch.on { background: var(--green); }
.switch.on i { left: 32px; }
.switch:disabled { opacity: .6; }

/* Bannière d'installation : au-dessus de la barre du bas, sur tous les écrans */
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 14; max-width: 620px; margin: 0 auto;
  align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #0b7a4f 0%, #009e60 55%, #f08a1c 130%); box-shadow: 0 10px 28px rgba(0,80,48,.35); animation: barIn .35s ease-out; }
@keyframes barIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.install-bar img { width: 46px; height: 46px; border-radius: 12px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.install-bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.install-bar-txt b { font-size: 16px; }
.install-bar-txt span { font-size: 12px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-bar-btn { flex: none; border: 0; border-radius: 999px; background: #fff; color: var(--green-d); font: inherit; font-weight: 800; font-size: 15px; padding: 10px 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.install-bar-btn:active { transform: scale(.97); }
.install-bar-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
body.has-install { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body.has-install #toast { bottom: calc(160px + env(safe-area-inset-bottom)); }
body.typing .install-bar { display: none !important; }

/* Explications d'installation, pas à pas */
.help-icon { display: block; margin: 0 auto 8px; border-radius: 14px; }
.help-step { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; line-height: 1.45; }
.help-step > span:first-child { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.help-key { display: inline-block; min-width: 24px; text-align: center; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 4px; font-weight: 800; }

/* Bandeau permanent de disponibilité (prestataire connecté), sous l'en-tête, sur tous les écrans */
#dispoBar { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; }
#dispoBar:empty { display: none; }
.dispo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow); }
.dispo-bar > span { flex: 1; min-width: 0; }
.dispo-bar.on { background: #e6f7ee; color: #0b5e3c; }
.dispo-bar.off { background: #f1f1ee; color: #555d57; }
.dispo-bar.ask { background: #fff1d9; color: #7a4a00; font-weight: 700; }
.dispo-bar .switch { width: 54px; height: 32px; }
.dispo-bar .switch i { width: 24px; height: 24px; }
.dispo-bar .switch.on i { left: 26px; }
.dbar-btn { border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; font-size: 14px; background: var(--green); color: #fff; cursor: pointer; }
.dbar-btn.ghost { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px #e3c996; }

/* Grande carte : question de rappel et mise en pause automatique */
.dispo.off .switch { background: #c9cec6; }
.dispo-ask { background: #fff1d9; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.dispo-ask b { display: block; font-size: 16px; color: #7a4a00; }
.dispo-ask-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dispo-ask-btns .btn { flex: 1; min-width: 130px; }
.dispo-paused { margin: 10px 0 0; font-size: 14px; background: #fdecec; color: #8a1c1c; border-radius: 12px; padding: 10px 12px; }
.push-slot:empty { display: none; }
.push-slot { margin-top: 10px; }
.push-btn { width: 100%; }
.push-ok { margin: 0; font-size: 14px; color: var(--green-d); font-weight: 600; }
