/* Parcours acheteur et inscription (lot A, 08/11/2026). Chargé sur la fiche, les pages de compte et les pages d'origine de la plateforme. Les champs et boutons des pages de compte sont dans compte.css.
   Tout ce qui est ici améliore une page qui marche déjà sans cette feuille ni script. */

/* ---- Inscription : le bloc broker et le téléphone suivent le rôle choisi, sans JavaScript ---- */
.ux-inscription .ux-broker { display: none; }
.ux-inscription:has(input[name="role"][value="broker"]:checked) .ux-broker { display: block; }
.ux-inscription:has(input[name="role"][value="buyer"]:checked) .ux-tel { display: none; }
/* Un navigateur sans :has() montre tout : l'inscription d'un broker reste possible. */
@supports not selector(:has(a)) {
  .ux-inscription .ux-broker { display: block; }
}

/* ---- Formulaire d'offre ---- */
[data-offre] input[data-amount] { font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.ux-paliers { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .5rem; }
.ux-paliers[hidden] { display: none; }
.ux-paliers button { min-height: 44px; padding: 0 .9rem; border: 1px solid #b9c0cc; border-radius: 999px; background: #fff; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.ux-paliers button:hover { background: #eef1f6; }

.ux-aider, .ux-detail { margin: .5rem 0; }
.ux-aider > summary, .ux-detail > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.ux-detail > summary { font-weight: 500; font-size: .9rem; text-decoration: underline; }
.ux-aider[open] > summary, .ux-detail[open] > summary { margin-bottom: .4rem; }
.ux-lead { margin: 1rem 0 .5rem; padding: .1rem 0 .1rem .75rem; border-left: 3px solid #7fd8cf; font-size: .92rem; line-height: 1.45; }

/* La place du visiteur et « vous êtes dépassé » */
.ux-place { margin: 0 0 .75rem; padding: .65rem .85rem; border-radius: 10px; background: #e4f5f3; border: 1px solid #b6e3df; }
.ux-place p { margin: 0; }
.ux-place .ux-depasse { margin-top: .5rem; }
.ux-depasse { padding: .6rem .85rem; border-radius: 10px; background: #fdecea; border: 1px solid #f1b9b2; color: #8a1c14; }
.ux-depasse[hidden] { display: none; }
.ux-place .ux-depasse { background: transparent; border: 0; padding: 0; }
.ux-relever-lien { display: inline-block; margin-top: .25rem; padding: .5rem .9rem; min-height: 44px; box-sizing: border-box; line-height: 1.8; border-radius: 999px; background: #1b1a30; color: #fff !important; font-weight: 700; text-decoration: none; }
.ux-relever-lien:hover { background: #2d2b52; }
.ux-relever > summary { cursor: pointer; font-weight: 700; padding: .65rem 0; min-height: 44px; display: flex; align-items: center; }

/* E-mail non confirmé : le renvoi du lien, bien visible au-dessus du formulaire à préparer */
.ux-confirmer { margin: 0 0 .75rem; padding: .75rem .85rem; border-radius: 10px; background: #fff7e0; border: 1px solid #ecd48a; }
.ux-confirmer p { margin: 0 0 .5rem; }
.ux-confirmer form { margin: 0; }
[data-offre] button[disabled] { opacity: .55; cursor: not-allowed; }

/* Le visiteur sans compte : la fenêtre qui s'ouvre sur « Enchérir » et propose la connexion ou l'inscription */
.ux-popin { width: min(92vw, 440px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #fff; color: inherit; box-shadow: 0 18px 48px rgba(27, 26, 48, .35); }
.ux-popin::backdrop { background: rgba(27, 26, 48, .6); }
.ux-popin-c { position: relative; padding: 26px 24px 22px; }
.ux-popin-c h2 { margin: 0 36px 10px 0; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.2; }
.ux-popin-c p { margin: 0 0 10px; }
.ux-popin-c .btn { margin-top: 10px; }
.ux-popin-offre[hidden] { display: none; }
.ux-popin-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }

/* ---- Tableaux de l'espace acheteur ---- */
/* « Mes offres » : sous 600 px, une carte par annonce (les libellés viennent de data-label) */
@media (max-width: 600px) {
  table.ux-cartes, table.ux-cartes tbody { display: block; width: 100%; }
  table.ux-cartes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.ux-cartes tr { display: block; margin: 0 0 .75rem; padding: .5rem .85rem; border: 1px solid #d9dee7; border-radius: 12px; background: #fff; }
  table.ux-cartes td { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0 !important; border: 0 !important; text-align: right; }
  table.ux-cartes td::before { content: attr(data-label); flex: 0 0 42%; text-align: left; font-size: .8rem; font-weight: 700; text-transform: none; color: #5a6072; }
  table.ux-cartes td:first-child { display: block; text-align: left; font-weight: 700; padding-bottom: .5rem !important; border-bottom: 1px solid #e6e9ef !important; margin-bottom: .25rem; }
  table.ux-cartes td:first-child::before { display: none; }
  table.ux-cartes td:empty { display: none; }
}

/* Tableaux qui défilent (relevés) : une ombre au bord dit qu'il y a de la suite à droite ou à gauche */
.scroll {
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 2.5rem 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(27, 26, 48, .22), rgba(27, 26, 48, 0)) left center / .9rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(27, 26, 48, .22), rgba(27, 26, 48, 0)) right center / .9rem 100% no-repeat scroll;
}
@media (max-width: 600px) {
  .scroll::after { content: "Faites défiler le tableau vers la droite pour voir toutes les colonnes."; display: block; padding: .35rem 0 0; font-size: .8rem; color: #5a6072; }
}

/* ---- Boost Check (14/11/2026) : la fiche du vendeur, la relecture de l'équipe et la section publique de la fiche d'annonce ---- */
.bc-statut { padding: .65rem .85rem; border-radius: 10px; border: 1px solid #d9dee7; background: #f4f6f9; }
.bc-statut.bc-submitted { background: #eef4ff; border-color: #b9cdf0; }
.bc-statut.bc-verified { background: #e9f6ef; border-color: #a9d8bd; }
.bc-statut.bc-refused { background: #fdf0ee; border-color: #efb9b2; }
.bc-motif { display: block; margin-top: .35rem; font-weight: 600; }
.bc-point { margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid #d9dee7; border-radius: 12px; }
.bc-point legend { padding: 0 .4rem; font-weight: 700; }
.bc-photo-requise { font-weight: 400; font-size: .85rem; color: #5a6072; }
.bc-etats { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .4rem 0 .6rem; }
.bc-etats label { display: inline-flex; align-items: center; gap: .35rem; }
.bc-photos { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0; padding: 0; list-style: none; }
.bc-photos li { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.bc-photos img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid #d9dee7; }
.bc-retirer { display: inline-flex; align-items: center; gap: .3rem; color: #5a6072; }
.bc-lecture { padding: .6rem 0; border-top: 1px solid #e6e9ef; }
.bc-lecture h3 { margin: 0 0 .2rem; font-size: 1rem; }
.bc-lecture p { margin: 0 0 .3rem; }
.boost-check-public .bc-liste { margin: .6rem 0; padding: 0; list-style: none; }
.boost-check-public .bc-liste li { padding: .6rem 0 .6rem .9rem; border-left: 4px solid #d9dee7; margin: 0 0 .5rem; }
.boost-check-public .bc-s-ok { border-left-color: #1d7a4b; }
.boost-check-public .bc-s-watch { border-left-color: #c58a12; }
.boost-check-public .bc-s-issue { border-left-color: #b4372f; }
.bc-pastille { display: inline-flex; align-items: center; margin-left: .4rem; padding: .15rem .6rem; border-radius: 999px; background: #0F6F73; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.bc-valeur { font-size: 1.35rem; }

/* ---- Fiche d'une annonce, sur le modèle d'annoncesbateau.com (visio du 20/11/2026) : points clés, panneaux teintés à carte blanche, accordéons ---- */
.fkp { list-style: none; margin: 1.4rem 0 0; padding: 20px 22px; border: 1px solid #dbe6e6; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(37, 36, 63, .08); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.fkp li { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.fkp-i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #c9d8d8; border-radius: 50%; background: #f1f7f7; color: var(--acc-d, #0F6F73); }
.fkp-i svg { display: block; width: 22px; height: 22px; }
.fkp-t { display: flex; flex-direction: column; min-width: 0; font-size: 15px; line-height: 1.35; }
.fkp-t b { display: block; font-weight: 700; }
.fkp-t span { display: block; font-weight: 400; overflow-wrap: anywhere; }
@media (max-width: 900px) { .fkp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
@media (max-width: 600px) { .fkp { padding: 16px 14px; } .fkp li { gap: 10px; } .fkp-i { width: 36px; height: 36px; } .fkp-i svg { width: 20px; height: 20px; } .fkp-t { font-size: 14px; } }

/* Un panneau : un titre, un fond très pâle tiré du turquoise du site, une carte blanche pour le contenu (début et fin visibles). */
.fsec.fpan { margin: 26px 0 0; padding: 20px 16px; border-top: 0; border-radius: 8px; background: #eff6f6; background: color-mix(in srgb, var(--turq, #0F6F73) 9%, #fff); scroll-margin-top: 96px; }
.fsec.fpan > h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; font-weight: 700; }
.fpan-c { padding: 16px 18px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(37, 36, 63, .06); }
.fsec.fpan .fpan-c > :first-child { margin-top: 0; }
.fsec.fpan .fpan-c > :last-child { margin-bottom: 0; }
.fsec.fpan .fpan-c p { max-width: none; }
.fsec.fpan .fpan-c h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.3; }
.fpan-c > #visite { margin: 0 !important; padding: 0; border: 0; box-shadow: none; background: none; scroll-margin-top: 96px; }
@media (min-width: 700px) { .fsec.fpan { padding: 24px 22px; } .fpan-c { padding: 18px 24px; } }
#informations > .fpan-c { padding-top: 0; padding-bottom: 18px; }

/* Les accordéons frères : en-tête en gras, chevron à droite, un filet entre deux accordéons. */
.fbloc { border-top: 1px solid var(--line, #e2e6e2); }
.fbloc:first-child { border-top: 0; }
.fbloc > summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; line-height: 1.3; display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.fbloc > summary::-webkit-details-marker { display: none; }
.fbloc > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -5px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.fbloc[open] > summary::after { margin-top: 5px; transform: rotate(-135deg); }
.fbloc > summary:focus-visible { outline: 2px solid var(--acc-d, #0F6F73); outline-offset: 2px; }
.fbloc-b { padding: 0 0 20px; font-size: 16px; }
.fbloc-b > :first-child { margin-top: 0; }
.fbloc-b > :last-child { margin-bottom: 0; }

/* La description, repliée à quelques lignes : « Voir plus » à droite. */
.fdesc-i { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fdesc-t { position: relative; max-height: 9.5em; overflow: hidden; }
.fdesc-t::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.fdesc-i:checked ~ .fdesc-t { max-height: none; }
.fdesc-i:checked ~ .fdesc-t::after { display: none; }
.fdesc-b { display: block; margin-top: 8px; text-align: right; color: var(--acc-d, #0F6F73); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fdesc-b .moins, .fdesc-i:checked ~ .fdesc-b .plus { display: none; }
.fdesc-i:checked ~ .fdesc-b .moins { display: inline; }
.fdesc-i:focus-visible ~ .fdesc-b { outline: 2px solid var(--acc-d, #0F6F73); outline-offset: 2px; }

/* Les lignes « libellé : valeur » : deux colonnes étroites au bureau, une au téléphone, sans filet. */
.fdl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; font-size: 15px; line-height: 1.4; }
.fdl div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; }
.fdl dt { flex: none; color: var(--muted, #596272); }
.fdl dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 700px) { .fdl { grid-template-columns: minmax(0, 1fr); } }

/* L'encart de fin du panneau : mène à la question, sans aucune coordonnée. */
.fsec.fpan .fpan-c .fask { margin: 6px 0 0; padding: 14px 16px; border: 1px solid var(--line, #e2e6e2); border-radius: 6px; font-size: 15px; line-height: 1.4; }
.fask a { margin-left: 4px; color: var(--acc-d, #0F6F73); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.fserv { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.fsec.fpan .fpan-c .fq { margin-top: 14px; }
.fq [data-flo-ouvrir] { display: none; }
.js .fq [data-flo-ouvrir] { display: inline-flex; }
