/* Une seule feuille, pensée d'abord pour le téléphone. Les marges utilisent
   les propriétés logiques (inline-start / inline-end) : la page bascule toute
   seule quand l'arabe la met de droite à gauche. */

:root {
  --encre: #0E1B2C;
  --texte: #2A3445;
  --discret: #5B6677;
  --fond: #F6F4EF;
  --carte: #FFFFFF;
  --trait: #E2DED5;
  --vert: #0B8A5A;
  --vert-pale: #E3F4EC;
  --ambre: #B07A10;
  --ambre-pale: #FBF1DC;
  --rouge: #B3261E;
  --rouge-pale: #FBE5E3;
  --rayon: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #F1EEE8; --texte: #D9D5CC; --discret: #9AA3B0;
    --fond: #11161E; --carte: #1A212C; --trait: #2C3544;
    --vert: #2FB27E; --vert-pale: #16372A; --ambre: #E0A93A; --ambre-pale: #3A2E14;
    --rouge: #F08A80; --rouge-pale: #3E1B19;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif; }
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
a { color: var(--vert); }
h1, h2, h3 { color: var(--encre); line-height: 1.25; }
h1 { font-size: 1.6rem; }
small { color: var(--discret); }
img { max-width: 100%; height: auto; display: block; }

.entete { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--carte); border-block-end: 1px solid var(--trait); position: sticky; top: 0; z-index: 5; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-weight: 700; font-size: 1.3rem; }
.logo { width: 34px; height: 34px; }
.menu { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.menu a { text-decoration: none; color: var(--texte); }
.menu .bouton-plein { color: #fff; }
.pastille { background: var(--rouge); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .8rem; }
.langue { font-weight: 600; }

.page { max-width: 1180px; margin: 0 auto; padding: 16px; }
.etroit { max-width: 460px; margin: 0 auto; }
.pied { text-align: center; color: var(--discret); padding: 32px 16px; font-size: .9rem; }

.bouton { display: inline-block; border: 1px solid var(--trait); background: var(--carte); color: var(--encre);
  border-radius: var(--rayon); padding: 9px 16px; font: inherit; cursor: pointer; text-decoration: none; }
.bouton:hover { border-color: var(--encre); }
.bouton-plein { background: var(--vert); border-color: var(--vert); color: #fff; }
.bouton-plein:hover { filter: brightness(1.08); border-color: var(--vert); }
.lien { background: none; border: 0; color: var(--vert); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.en-ligne { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0; }

.accroche h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 12px 0 18px; }

.recherche { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end;
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; color: var(--discret); }
input, select, textarea { font: inherit; color: var(--encre); background: var(--carte); border: 1px solid var(--trait);
  border-radius: 8px; padding: 9px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--vert); outline-offset: 1px; }
.compte-resultats { color: var(--discret); }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.carte-lien { color: inherit; text-decoration: none; display: block; }
.carte-image { position: relative; aspect-ratio: 4 / 3; background: var(--trait); }
.carte-image img { width: 100%; height: 100%; object-fit: cover; }
.drapeau, .vendu { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; background: rgba(14, 27, 44, .78);
  color: #fff; font-size: .78rem; border-radius: 6px; padding: 2px 8px; }
.vendu { inset-inline-start: auto; inset-inline-end: 8px; background: var(--rouge); }
.carte-corps { padding: 12px 14px 14px; }
.carte-corps h3 { margin: 0 0 4px; font-size: 1.05rem; }
.carte-eteinte { opacity: .6; }
.caracteristiques { margin: 0; font-size: .88rem; color: var(--discret); }
.prix { font-weight: 700; font-size: 1.2rem; color: var(--encre); margin: 8px 0 4px; }
.prix-grand { font-size: 1.8rem; }
.fenetre { margin: 6px 0 0; font-size: .85rem; color: var(--vert); background: var(--vert-pale); border-radius: 6px; padding: 3px 8px; display: inline-block; }
.fenetre-urgente { color: var(--ambre); background: var(--ambre-pale); }
.fenetre-depassee { color: var(--rouge); background: var(--rouge-pale); }
.vendeur-ligne { margin: 8px 0 0; font-size: .82rem; color: var(--discret); }
.badge { color: var(--vert); font-weight: 700; }
.vide { color: var(--discret); padding: 30px 0; text-align: center; }
.pages { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.pages a, .pages span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--trait); text-decoration: none; }
.pages span { background: var(--encre); color: var(--fond); }

.fiche { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 820px) { .fiche { grid-template-columns: 1fr; } }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.galerie a:first-child { grid-column: 1 / -1; }
.galerie img { width: 100%; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.resume h1 { margin-top: 0; }
.ht { background: var(--vert-pale); border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }
.fenetre-bloc { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px;
  background: var(--vert-pale); color: var(--vert); margin: 10px 0 14px; }
.fenetre-bloc.fenetre-urgente { background: var(--ambre-pale); color: var(--ambre); }
.fenetre-bloc.fenetre-depassee { background: var(--rouge-pale); color: var(--rouge); }
.fenetre-bloc span { font-size: .88rem; }
.caracteristiques-liste { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 16px; }
.caracteristiques-liste dt { color: var(--discret); }
.caracteristiques-liste dd { margin: 0; color: var(--encre); }
.vendeur-bloc { border-block-start: 1px solid var(--trait); padding-block-start: 12px; margin-block-end: 14px; }
.badge-ligne { color: var(--vert); margin: 4px 0 0; font-size: .9rem; }
.contact { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.discret { color: var(--discret); font-size: .9rem; }

.cout, .description { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px; margin-top: 22px; }
.cout h2, .description h2 { margin-top: 0; font-size: 1.2rem; }
.description p { white-space: pre-line; }
.calcul { width: 100%; border-collapse: collapse; }
.calcul td, .calcul th { padding: 8px 4px; border-block-end: 1px solid var(--trait); text-align: start; }
.calcul td:last-child { text-align: end; white-space: nowrap; }
.calcul .sous-total th, .calcul .sous-total td { font-weight: 600; }
.calcul .total th, .calcul .total td { font-weight: 700; color: var(--encre); font-size: 1.1rem; border-block-end: 0; }
.avertissement { font-size: .88rem; color: var(--discret); background: var(--fond); border-radius: 8px; padding: 10px 12px; }
.essai { margin-top: 16px; border: 2px dashed var(--ambre); border-radius: 8px; padding: 12px; }
.signaler { margin-top: 22px; color: var(--discret); }
.signaler form { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: 8px; }

.alerte { background: var(--rouge-pale); color: var(--rouge); border-radius: 8px; padding: 10px 14px; }
.alerte ul { margin: 6px 0 0; padding-inline-start: 20px; }
.alerte-douce { background: var(--vert-pale); color: var(--vert); }

.formulaire { display: flex; flex-direction: column; gap: 16px; }
.formulaire fieldset { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; background: var(--carte); }
.formulaire legend { font-weight: 700; color: var(--encre); padding: 0 6px; }
.formulaire .large, .formulaire .lignes, .formulaire fieldset > p { grid-column: 1 / -1; }
.formulaire .bouton-plein { align-self: flex-start; padding: 12px 22px; }
.case { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--texte); }
.case input { width: auto; margin-top: 4px; }
.engagement { background: var(--vert-pale) !important; }
.photos-actuelles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.photo-choix { width: 120px; }
.photo-choix span { flex-direction: row; display: flex; gap: 4px; align-items: center; }
.photo-choix input { width: auto; }
.statut { margin-top: 18px; display: flex; gap: 8px; }
.intro { max-width: 720px; }

.tableau { width: 100%; border-collapse: collapse; background: var(--carte); border-radius: var(--rayon); overflow: hidden; margin: 10px 0 24px; }
.tableau th, .tableau td { padding: 9px 10px; border-block-end: 1px solid var(--trait); text-align: start; vertical-align: top; font-size: .92rem; }
.tableau input { width: auto; min-width: 0; }
.lignes input, .lignes select { padding: 6px; }
@media (max-width: 820px) { .tableau { display: block; overflow-x: auto; } }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.chiffres div { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 12px; display: flex; flex-direction: column; }
.chiffres strong { font-size: 1.6rem; color: var(--encre); }
.chiffres span { color: var(--discret); font-size: .85rem; }
.validation { margin-top: 26px; }

.fils { list-style: none; padding: 0; }
.fils li a { display: flex; gap: 12px; align-items: center; padding: 10px; border-block-end: 1px solid var(--trait); color: inherit; text-decoration: none; }
.fils img { border-radius: 6px; width: 72px; height: 54px; object-fit: cover; }
.fils .non-lu strong::after { content: " •"; color: var(--rouge); }
.fil { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fil li { max-width: 80%; padding: 10px 14px; border-radius: 12px; background: var(--carte); border: 1px solid var(--trait); }
.fil li p { margin: 0 0 4px; white-space: pre-line; }
.fil .moi { align-self: flex-end; background: var(--vert-pale); border-color: transparent; }
.repondre { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* Alertes */
.barre-resultats { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 14px 0; }
.barre-resultats .compte-resultats { margin: 0; }
.alerte-posee { color: var(--vert); font-size: .9rem; }
.alertes { list-style: none; padding: 0; }
.alertes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px;
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); margin-bottom: 10px; }
.alertes a { color: inherit; text-decoration: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Photos : deux gros boutons plutôt qu'un champ de fichier */
.ajout-photos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ajout-photos small { flex-basis: 100%; }
.bouton-photo { flex-direction: row; align-items: center; color: var(--encre); padding: 14px 18px; font-size: 1rem; }
.bouton-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bouton-photo { position: relative; }

/* La barre d'onglets du téléphone */
.onglets { display: none; }
@media (max-width: 760px) {
  .large-seulement { display: none !important; }
  .entete { padding: 10px 14px; }
  .page { padding-bottom: 90px; }
  .pied { padding-bottom: 96px; }
  .onglets { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 10;
    background: var(--carte); border-block-start: 1px solid var(--trait); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .onglets a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem;
    color: var(--discret); text-decoration: none; padding: 4px 0; }
  /* L'onglet où l'on est : son icône dans une pastille verte pâle. */
  .onglets a span { position: relative; display: grid; place-items: center; height: 30px; padding: 0 16px;
    border-radius: 15px; transition: background-color .15s; }
  .onglets .icone { width: 23px; height: 23px; }
  .onglets a.actif { color: var(--vert); font-weight: 600; }
  .onglets a.actif span { background: var(--vert-pale); }
  .onglets .pastille { position: absolute; top: -3px; inset-inline-end: 4px; font-size: .65rem; font-weight: 700; }
  .onglets .vendre span { background: var(--vert); color: #fff; border-radius: 50%; width: 42px; height: 42px; padding: 0;
    display: grid; place-items: center; margin-top: -16px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
  .onglets .vendre .icone { stroke-width: 2.25; }
  .onglets a.vendre.actif span { background: var(--vert); }
  .recherche { grid-template-columns: 1fr 1fr; padding: 12px; }
  .recherche:not(.ouverte) .repliable { display: none; }
  .accroche h1 { font-size: 1.35rem; margin: 4px 0 12px; }
}
.plus-filtres { display: none; }
@media (max-width: 760px) { .plus-filtres { display: inline-block; } }

/* Accompagnement, sur la fiche d'une voiture */
.accompagnement { background: var(--vert-pale); border-radius: var(--rayon); padding: 14px 16px; margin: 14px 0; }
.accompagnement strong { color: var(--vert); }
.accompagnement p { margin: 6px 0 12px; font-size: .92rem; }

/* Liste des dossiers */
.dossiers { list-style: none; padding: 0; }
.dossiers li a { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 10px; color: inherit;
  text-decoration: none; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
.dossiers img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.dossiers .annule { opacity: .55; }
.dossier-resume { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.jauge { height: 6px; background: var(--trait); border-radius: 3px; overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--vert); }

/* Un dossier */
.dossier-entete { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dossier-entete img { border-radius: 8px; width: 120px; height: 90px; object-fit: cover; }
.dossier-entete h1 { margin: 0 0 4px; font-size: 1.4rem; }
.dossier-entete h1 a { color: inherit; text-decoration: none; }
.dossier-entete p { margin: 2px 0; }
.etapes { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; counter-reset: e; }
.etapes li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .78rem; color: var(--discret); }
.etapes .puce { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--carte); border: 2px solid var(--trait); color: var(--discret); }
.etapes .faite .puce { background: var(--vert); border-color: var(--vert); color: #fff; }
.etapes .en-cours .puce { border-color: var(--vert); color: var(--vert); }
.etapes .en-cours { color: var(--encre); font-weight: 600; }
@media (max-width: 760px) {
  .etapes { grid-template-columns: 1fr; gap: 0; }
  .etapes li { flex-direction: row; text-align: start; padding: 6px 0; font-size: .92rem; }
}
.admin-etape { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin-bottom: 18px;
  border: 2px dashed var(--ambre); border-radius: var(--rayon); }
.admin-etape input, .admin-etape select { width: auto; flex: 1; min-width: 160px; }
.dossier-colonnes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 820px) { .dossier-colonnes { grid-template-columns: 1fr; } }
.dossier-colonnes h2 { font-size: 1.1rem; }
.journal { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.journal li { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 10px 14px; }
.journal li.jalon { border-inline-start: 4px solid var(--vert); }
.journal p { margin: 4px 0 0; white-space: pre-line; }
.pieces { list-style: none; padding: 0; }
.pieces li { padding: 8px 0; border-block-end: 1px solid var(--trait); display: flex; flex-direction: column; }
.depot { margin: 12px 0 20px; display: flex; flex-direction: column; gap: 6px; }
.depot .bouton { position: relative; align-self: flex-start; }
.depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Compte */
.raccourcis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 22px; }
.raccourcis a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; color: var(--encre);
  text-decoration: none; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); }
.raccourcis span { font-size: 1.4rem; }
.raccourcis .pastille { position: absolute; top: 10px; inset-inline-end: 10px; }
.compte-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.zone-danger { margin-top: 26px; color: var(--discret); }
.zone-danger summary { cursor: pointer; }

/* Vendeur, pages légales, pied de page */
.vendeur-entete { margin-bottom: 18px; }
.vendeur-entete p { margin: 4px 0; }
.legal { max-width: 760px; }
.legal mark { background: var(--ambre-pale); color: var(--ambre); padding: 0 3px; border-radius: 3px; }
.a-completer { background: var(--ambre-pale); color: var(--ambre); border-radius: 8px; padding: 10px 14px; }
.liens-legaux a { color: var(--discret); }

/* La visionneuse plein écran */
.visionneuse { position: fixed; inset: 0; z-index: 50; background: #000; }
.visionneuse[hidden] { display: none; }
.visionneuse .defile { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.visionneuse .defile::-webkit-scrollbar { display: none; }
.visionneuse img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.visionneuse .fermer { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 1.3rem; cursor: pointer; }
.visionneuse .compteur { position: absolute; top: 22px; inset-inline-start: 18px; z-index: 2; color: #fff; font-size: .9rem; }
.sans-defilement { overflow: hidden; }
.galerie a { cursor: zoom-in; }
[dir="rtl"] .visionneuse .defile { direction: ltr; }

/* Photos existantes, dans le formulaire */
.photo-choix { width: 130px; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.photo-choix img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-choix label { flex-direction: row; align-items: center; gap: 6px; color: var(--texte); }
.photo-choix input { width: auto; }

.tarif { font-size: 1rem; margin: 0 0 12px; }

/* Vigilance : un message qui organise un paiement hors de la plateforme */
.fil .suspect { border: 2px solid var(--ambre); }
.vigilance { background: var(--ambre-pale); color: var(--ambre); border-radius: 8px; padding: 8px 10px; font-size: .88rem; }

/* Tableau de bord : une série, des barres fines ancrées à la ligne de base */
.courbe-bloc { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; margin: 18px 0; }
.courbe-bloc h2 { margin: 0 0 12px; font-size: 1.05rem; }
.courbe { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-block-end: 1px solid var(--trait); }
.courbe .barre { flex: 1; min-height: 0; background: var(--vert); border-radius: 4px 4px 0 0; outline-offset: 2px; }
.courbe .barre:hover, .courbe .barre:focus { background: var(--encre); }
.courbe-axe { display: flex; justify-content: space-between; font-size: .78rem; color: var(--discret); margin-top: 6px; }
.a-surveiller { padding-inline-start: 18px; }
.a-surveiller li { margin-bottom: 6px; }
.tableau .eteinte { opacity: .6; }

/* L'estimation à options */
.options-cout { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 16px; }
.groupe-choix { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.groupe-choix legend { font-weight: 600; color: var(--encre); margin-bottom: 6px; padding: 0; }
.pastille-choix { flex-direction: row; cursor: pointer; }
.pastille-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastille-choix span { display: inline-block; padding: 8px 14px; border: 1px solid var(--trait); border-radius: 99px;
  background: var(--carte); color: var(--texte); font-size: .92rem; }
.pastille-choix input:checked + span { background: var(--vert); border-color: var(--vert); color: #fff; }
.pastille-choix input:focus-visible + span { outline: 2px solid var(--vert); outline-offset: 2px; }
.groupe-choix .case { flex-basis: 100%; }
#estimation.recalcul .calcul { opacity: .45; transition: opacity .15s; }

/* Provenance des montants */
.source { display: inline-block; margin-inline-start: 6px; font-size: .72rem; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.source.verifiee { background: var(--vert-pale); color: var(--vert); }
.source.a-confirmer { background: var(--ambre-pale); color: var(--ambre); }
.source.estimee { background: var(--fond); color: var(--discret); }
.conditions-import { margin-top: 14px; font-size: .92rem; }
.conditions-import summary { cursor: pointer; font-weight: 600; color: var(--encre); }

/* Le prix final en Algérie */
.prix-ht { font-weight: 500; color: var(--vert); font-size: .8rem; }
.prix-final { margin: 2px 0 4px; font-size: .9rem; color: var(--texte); display: flex; justify-content: space-between; gap: 8px; background: var(--vert-pale); border-radius: 6px; padding: 4px 8px; }
.prix-final strong { color: var(--vert); }
.bloc-prix-final { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 0 0 12px; border-radius: 10px; background: var(--vert); color: #fff; text-decoration: none; }
.bloc-prix-final strong { font-size: 1.6rem; }
.bloc-prix-final small { color: rgba(255,255,255,.85); }

/* Devis */
.bloc-devis { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; margin: 18px 0; }
.bloc-devis h2 { margin-top: 0; font-size: 1.1rem; }
.demande-devis input { flex: 1; min-width: 180px; }
.devis-retenue td { background: var(--vert-pale); }
.devis-ecartee td, .devis-declinee td { opacity: .55; }


/* L'écran « Vous êtes… ? » : de grandes cases faciles à toucher. */
.bienvenue { max-width: 720px; margin: 0 auto; }
.bienvenue h1 { margin-bottom: 4px; }
.bienvenue h2 { font-size: 1rem; color: var(--discret); margin: 28px 0 10px; font-weight: 600; }
.profils { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.profils-partenaires { margin-top: 0; }
.profil-case { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: var(--carte);
  border: 1px solid var(--trait); border-radius: var(--rayon); color: var(--encre); text-decoration: none;
  transition: border-color .15s, box-shadow .15s; }
.profil-case:hover, .profil-case:focus-visible { border-color: var(--vert); box-shadow: 0 2px 10px rgba(11, 138, 90, .15); }
.profil-case:active { background: var(--vert-pale); }
.profil-case strong { font-size: 1.05rem; }
.profil-case small { color: var(--discret); line-height: 1.35; }
.profil-icone { font-size: 1.9rem; line-height: 1; margin-bottom: 4px; }
.profil-principal { grid-column: 1 / -1; background: var(--vert); border-color: var(--vert); color: #fff; }
.profil-principal small { color: rgba(255, 255, 255, .85); }
.profil-principal:active { background: #097a50; }
.bienvenue-connexion { margin-top: 24px; text-align: center; }

/* Les paiements d'un dossier : un compte vérifié par bénéficiaire. */
.bloc-paiements { margin: 24px 0; }
.paiement-regle { background: var(--ambre-pale); color: var(--encre); border-radius: 8px; padding: 10px 14px; }
.reglements { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.reglement { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px; }
.reglement-recu { border-color: var(--vert); }
.reglement-annule { opacity: .75; }
.reglement-tete { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.reglement-montant { font-size: 1.2rem; font-weight: 700; color: var(--encre); }
.reglement-compte { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0; }
.reglement-compte dt { color: var(--discret); }
.reglement-compte dd { margin: 0; }
.iban-texte { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.reglement-etat { font-weight: 600; margin: 8px 0; }
.reglement form { margin-top: 8px; }
.reglement-bilan { text-align: end; }
.reglement-ajout { margin-top: 12px; }
