/* Page « Votre pro arrive » — couleurs et formes de l'app Welcome (noir, blanc, crème, sable). */
:root { --noir: #000; --blanc: #fff; --sable: #D2B48C; --beige: #E8D9C4; --creme: #F9F5F0; --gris: #6F6A63; --filet: #EFE9DF;
  --alerte: #8A4326; --fond: #F6F1EA; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--noir);
  font-family: "Open Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--noir); outline-offset: 2px; }

#carte { position: fixed; inset: 0; background: var(--fond); }
body.sans-carte #carte { display: none; }

.marque { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 16px; display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 22px; background: rgba(255,255,255,.72); border: .6px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 18px rgba(0,0,0,.12); z-index: 2; }
.marque .w { width: 32px; height: 32px; border-radius: 50%; background: var(--noir); display: grid; place-items: center; }
.marque .w img { width: 18px; height: 18px; object-fit: contain; }
.marque span { font: 600 14px "Poppins", sans-serif; }

.feuille { position: fixed; left: 0; right: 0; bottom: 0; background: var(--blanc); border-radius: 32px 32px 0 0;
  box-shadow: 0 -6px 28px rgba(0,0,0,.10); padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 18px);
  max-height: 92%; overflow-y: auto; overscroll-behavior: contain; z-index: 3; }
body.sans-carte .feuille { top: calc(env(safe-area-inset-top, 0px) + 72px); max-height: none; }
.poignee { width: 38px; height: 4px; border-radius: 2px; background: var(--beige); margin: 0 auto 16px; }
.sur { font-size: 13px; color: var(--gris); margin: 0 0 2px; min-height: 1px; }
h1 { font: 600 25px/1.2 "Poppins", sans-serif; margin: 0; }
.sous { font-size: 14px; color: var(--gris); margin: 4px 0 0; }
.sous strong { display: block; color: var(--alerte); font-weight: 600; margin-top: 2px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* L'en-tête : le compte à rebours ou la coche, puis les mots. */
.tete.avec-signe { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.tete .mots { flex: 1; min-width: 0; }
.signe { width: 80px; height: 80px; flex: none; position: relative; }
.signe svg { width: 100%; height: 100%; display: block; }
.signe.anneau svg { transform: rotate(-90deg); }
.signe .fond { fill: none; stroke: var(--filet); stroke-width: 6; }
.signe .arc { fill: none; stroke: var(--sable); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100 100;
  transition: stroke-dasharray 1.2s ease; }
.signe .chiffre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.signe .chiffre b { font: 600 30px/1 "Poppins", sans-serif; }
.signe .chiffre span { font-size: 12px; color: var(--gris); margin-top: 2px; }
/* Sur place : le cercle puis la coche se dessinent, une fois. */
.signe.coche .rond, .signe.coche .trait { fill: none; stroke: var(--noir); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; }
.signe.coche .rond { animation: tracer .6s ease-out forwards; }
.signe.coche .trait { stroke-width: 6; animation: tracer .35s .5s ease-out forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }


.alerte { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--creme); border: 1px solid var(--beige);
  font-size: 13px; line-height: 1.4; }

.etapes { display: flex; align-items: flex-start; margin: 18px 0 16px; padding: 0; list-style: none; }
.etape { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: var(--gris); }
.etape .rond { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--beige); background: var(--blanc); margin: 0 auto 6px;
  display: grid; place-items: center; position: relative; z-index: 1; }
.etape.faite .rond { background: var(--noir); border-color: var(--noir); }
.etape.faite .rond svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.etape.encours .rond { border-color: var(--noir); }
.etape.encours .rond::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--noir); }
.etape.faite, .etape.encours { color: var(--noir); font-weight: 600; }
.etape + .etape::before { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--beige); }
.etape.faite + .etape::before { background: var(--noir); }

.pro { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--creme); margin-top: 16px; }
.etapes:not([hidden]) + .pro { margin-top: 0; }
.photo { width: 48px; height: 48px; border-radius: 50%; background: var(--sable); display: grid; place-items: center;
  font: 600 19px "Poppins", sans-serif; flex: none; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro .nom { font: 600 15.5px/1.25 "Poppins", sans-serif; }
.pro .quoi { font-size: 13px; color: var(--gris); line-height: 1.35; }
.pro .texte { flex: 1; min-width: 0; }
.appel { width: 46px; height: 46px; border-radius: 50%; background: var(--noir); display: grid; place-items: center; flex: none; }
.appel svg { width: 20px; height: 20px; fill: #fff; }

.ligne { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 13px 4px 4px; margin: 0; border: 0; background: none;
  text-align: left; cursor: pointer; border-radius: 12px; }
.ligne .icone { width: 36px; height: 36px; border-radius: 50%; background: var(--creme); display: grid; place-items: center; flex: none; }
.ligne .icone svg { width: 18px; height: 18px; fill: var(--noir); }
.ligne .t1 { display: block; font: 500 14.5px/1.3 "Poppins", sans-serif; }
.ligne .t2 { display: block; font-size: 12.5px; color: var(--gris); }
.ligne .fleche { margin-left: auto; color: var(--gris); font-size: 20px; }

.choix { display: flex; gap: 10px; margin-top: 16px; }
.bouton { flex: 1; min-height: 52px; border-radius: 10px; border: 1.5px solid var(--noir); background: var(--blanc); color: var(--noir);
  font: 500 15px "Poppins", sans-serif; display: grid; place-items: center; text-align: center; padding: 8px 10px; cursor: pointer;
  text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bouton.noir { background: var(--noir); color: var(--blanc); }
.bouton:active { transform: scale(.985); }
.pied { text-align: center; font-size: 11.5px; color: var(--gris); margin: 14px 0 0; }
.credits { text-align: center; font-size: 10.5px; color: var(--gris); margin: 3px 0 0; }
.credits a { color: inherit; }
body.sans-carte .credits, body.attente .credits { display: none; }

/* Préparer sa venue */
.formulaire { margin-top: 14px; }
.formulaire h2 { font: 600 17px/1.3 "Poppins", sans-serif; margin: 0 0 2px; }
.formulaire .aide { font-size: 12.5px; color: var(--gris); margin: 0 0 12px; }
.champ { display: block; margin-top: 10px; }
.champ span { display: block; font: 500 13px "Poppins", sans-serif; margin-bottom: 5px; }
.champ input, .champ textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--beige);
  background: var(--blanc); font-size: 16px; line-height: 1.35; resize: none; -webkit-appearance: none; appearance: none; }
.champ input:focus, .champ textarea:focus { border-color: var(--noir); outline: none; }
.champ.faux input { border-color: var(--alerte); }
.erreur { color: var(--alerte); font-size: 13px; line-height: 1.4; margin: 6px 0 0; }
.erreur:empty { display: none; }

/* Après le rendez-vous : la note en un geste, le prochain rendez-vous */
.noter { margin-top: 22px; }
.noter h2, .suite h2 { font: 600 16px/1.3 "Poppins", sans-serif; margin: 0; }
.etoiles { display: flex; gap: 6px; margin: 10px 0 0 -6px; }
.etoile { width: 52px; height: 52px; border: 0; background: none; padding: 6px; cursor: pointer; border-radius: 12px;
  -webkit-tap-highlight-color: transparent; }
.etoile svg { width: 100%; height: 100%; fill: var(--filet); stroke: var(--beige); stroke-width: 1; stroke-linejoin: round;
  transition: fill .15s ease, transform .15s ease; }
.etoile.allumee svg { fill: var(--sable); stroke: var(--sable); transform: scale(1.08); }
@media (hover: hover) { .etoiles:hover .etoile svg { fill: var(--sable); stroke: var(--sable); }
  .etoiles .etoile:hover ~ .etoile svg { fill: var(--filet); stroke: var(--beige); } }
.noter .aide, .suite .aide { font-size: 12.5px; color: var(--gris); margin: 6px 0 0; }
.suite { margin-top: 22px; padding: 18px 16px 16px; border-radius: 18px; background: var(--creme); }
.suite .bouton { margin-top: 14px; }
.quand { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tuile { width: 56px; height: 60px; border-radius: 12px; background: var(--blanc); display: grid; place-content: center; text-align: center;
  flex: none; box-shadow: 0 1px 0 var(--filet); }
.tuile .mois { font-size: 11px; color: var(--gris); text-transform: uppercase; letter-spacing: .02em; }
.tuile .jour { font: 600 24px/1.05 "Poppins", sans-serif; }
.quand .t1 { font: 600 15px/1.3 "Poppins", sans-serif; }
.quand .t1::first-letter { text-transform: uppercase; }
.quand .t2 { font-size: 12.5px; color: var(--gris); line-height: 1.4; }

/* Repères posés sur la carte */
.repere-pro { width: 46px; height: 46px; border-radius: 50%; background: var(--sable); border: 3px solid #fff; display: grid; place-items: center;
  font: 600 18px "Poppins", sans-serif; box-shadow: 0 0 0 9px rgba(210,180,140,.30), 0 6px 16px rgba(0,0,0,.28); }
.repere-maison { width: 34px; height: 34px; border-radius: 50%; background: var(--noir); border: 3px solid #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.28); }
.repere-maison svg { width: 17px; height: 17px; fill: #fff; }
.bulle { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--noir); color: #fff;
  font: 500 12px "Poppins", sans-serif; padding: 5px 10px; border-radius: 10px; }
.bulle:empty { display: none; }

.sans-js { position: fixed; inset: auto 0 0 0; margin: 0; padding: 24px 20px; background: var(--blanc); font-size: 15px; z-index: 5; }

/* Ordinateur : la carte prend l'écran, la feuille devient une carte posée dessus. */
@media (min-width: 760px) {
  .feuille { left: 24px; right: auto; bottom: 24px; width: 400px; border-radius: 28px; padding-bottom: 20px; max-height: calc(100% - 110px);
    box-shadow: 0 10px 40px rgba(0,0,0,.16); }
  .poignee { visibility: hidden; margin-bottom: 8px; }
  body.sans-carte .feuille { top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .bouton:active { transform: none; }
  .signe .arc, .etoile svg { transition: none; }
  .signe.coche .rond, .signe.coche .trait { animation: none; stroke-dashoffset: 0; }
}
