/* The three profession articles (usecase-*): a reading page, one column of 720 px, text and figures flush. Kit tokens only; the drawings keep their flat tints. */

/* ---------- The column ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); column-gap: var(--inter-colonne); }
.uc-grid > * { grid-column: 1 / -1; min-width: 0; width: 100%; max-width: 720px; }
@media (min-width: 1200px) { .uc-grid > * { grid-column: 3 / span 8; } }

/* ---------- Title block and gains ---------- */
.uc-head { padding-top: var(--e-haut); }
.uc-kicker { font-size: var(--t-small); font-weight: var(--g-fort); line-height: var(--l-label); }
.uc-head h1 { margin-top: var(--e-3); }
.uc-head .lede { margin-top: var(--e-5); }
.uc-time { margin-top: var(--e-3); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }

.uc-gains { margin-top: var(--e-6); padding-block: var(--e-5); border-block: var(--filet-w) solid var(--trait-fort); }
.uc-gains .t3 { font-size: var(--t-h2-art); }
.uc-gains ul { list-style: none; margin: var(--e-3) 0 0; padding: 0; }
.uc-gains li { padding-block: var(--e-3); font-size: var(--t-valeur); line-height: var(--l-small); }
.uc-gains li + li { border-top: 1px solid var(--trait-fin); }
.uc-gains li:last-child { padding-bottom: 0; }

/* ---------- Body ---------- */
.uc-body { padding-block: var(--e-7) var(--e-section); font-size: var(--t-body); line-height: var(--l-body); }
.uc-body > p { max-width: var(--mesure); }
.uc-body > p + p { margin-top: 1em; }
.uc-body > p strong, .uc-body > p strong .lk { font-weight: var(--g-texte); }
.uc-body > h2 { font-size: var(--t-h2-art); line-height: var(--l-h3); margin-top: var(--e-7); margin-bottom: var(--e-3); }
.uc-body > h2:first-child { margin-top: 0; }
.uc-body > p + .uc-fig { margin-top: var(--e-6); }
.uc-body > .uc-fig + p { margin-top: var(--e-5); }
.uc-body > .uc-fig + h2 { margin-top: var(--e-7); }

/* ---------- Figures: 720 wide, 240 to 405 high; 280 at most on a phone ---------- */
.uc-fig { margin: 0; }
.uc-draw { position: relative; min-width: 0; }
.uc-frame { background: var(--feuille); border: 1px solid var(--filet-doux); border-radius: var(--r); box-shadow: var(--ombre-proche); overflow: hidden; isolation: isolate; }
.uc-plain { position: relative; }
.uc-planche.planche, .uc-planche--wide.planche { height: 280px; }
@media (min-width: 760px) {
  .uc-planche.planche { height: 360px; }
  .uc-planche--wide.planche { height: 405px; }
}
.uc-tag { filter: drop-shadow(0 1px 1px rgba(43, 32, 24, .16)) drop-shadow(0 8px 14px rgba(43, 32, 24, .28)); }

/* Drawing text at its rendered size */
svg .uc-sv { font-family: var(--f-ref); font-size: calc(13.5px * var(--k, 1)); }
svg .uc-sv-h { fill: var(--encre); paint-order: stroke; stroke: #fffdf9; stroke-width: calc(3.5px * var(--k, 1)); stroke-linejoin: round; font-weight: 500; }

/* Drawn tabs: a tab that does not fit wraps to a hidden row, so none is cut */
.uc-tabs { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 var(--e-4); height: 44px; padding: 0 var(--e-4); border-bottom: 1px solid var(--trait-fort); overflow: hidden; white-space: nowrap; }
.uc-tabs .tab { padding: var(--e-3) var(--e-1) calc(var(--e-3) - 2px); font-size: var(--t-small); }
.uc-tabs .tab.is-on { color: var(--encre); font-weight: var(--g-h3); box-shadow: inset 0 -2px 0 var(--encre); }
.uc-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--e-4); margin: var(--e-3) 0 0; font-size: var(--t-small); line-height: 1.4; }
.uc-kv dt { color: var(--encre-2); }
.uc-kv dd { margin: 0; font-weight: var(--g-fort); }

/* ---------- Promoteur: the fiche beside the regulation ---------- */
.uc-rg { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-3); padding: var(--e-6) var(--e-3) var(--e-3); background: var(--dessin-sol); }
.uc-fi-h { padding: var(--e-3) var(--e-4) var(--e-2); }
.uc-fi-t { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-3); align-items: baseline; font-size: var(--t-small); }
.uc-fi-t .ref { color: var(--encre-2); }
.uc-fi-p { padding: var(--e-3) var(--e-4) var(--e-4); font-size: var(--t-small); line-height: var(--l-small); }
.uc-fi-p .f-rows { margin-top: var(--e-1); }
.uc-fi-p .f-rows li { padding-block: 5px; }
.uc-fi-v { margin-top: var(--e-3); }
.uc-rg-p { padding: var(--e-4) var(--e-4) var(--e-5); display: block; }
.uc-rg-pt { display: flex; justify-content: space-between; gap: var(--e-3); padding-bottom: var(--e-3); margin-bottom: var(--e-3); border-bottom: var(--filet-w) solid var(--trait-fort); font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); }
.uc-rg-a { margin-top: var(--e-3); font-size: var(--t-small); line-height: var(--l-small); }
.uc-hl { position: relative; margin: var(--e-2) 0 var(--e-3); padding: var(--e-1) var(--e-3); font-size: var(--t-small); line-height: var(--l-small); font-weight: var(--g-label); background: var(--repere-voile); }
.uc-hl::before, .uc-hl::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; border: 2px solid var(--repere); }
.uc-hl::before { left: 0; border-right: 0; }
.uc-hl::after { right: 0; border-left: 0; }
.uc-l { display: block; height: 8px; width: var(--w, 100%); margin-top: 8px; background: var(--calque); }
.uc-rg-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.uc-rg-line path { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.uc-rg-line circle { fill: var(--encre); }
@media (min-width: 760px) {
  .uc-rg { grid-template-columns: minmax(0, 12fr) minmax(0, 8fr); gap: var(--e-5); align-items: start; min-height: 360px; padding: var(--e-6) var(--e-5) var(--e-5); }
}
@media (max-width: 759px) {
  .uc-rg .uc-fi-h, .uc-rg .uc-tabs, .uc-rg .f-zone, .uc-rg .f-rows li:not(.is-cite), .uc-rg .uc-fi-v, .uc-rg .uc-rg-pt, .uc-rg .uc-rg-a, .uc-rg .uc-l { display: none; }
  .uc-rg .uc-fi-p { padding: var(--e-2) var(--e-3); }
  .uc-rg .f-rows { margin: 0; }
  .uc-rg .f-rows li { border-bottom: 0; }
  .uc-rg-p { padding: var(--e-3); }
  .uc-rg .uc-hl { margin: 0; }
}

/* ---------- Promoteur: the volume ---------- */
.uc-vol { height: 280px; }
.uc-vol .v3d { position: absolute; inset: 0; --vy: 6%; --s: min(.9cqw, 1.45cqh); }
.uc-vol .legend { flex-wrap: wrap; right: 14px; }
@media (min-width: 760px) {
  .uc-vol { height: auto; aspect-ratio: 16 / 9; }
  .uc-vol .v3d { --s: min(.87cqw, 1.55cqh); }
  .uc-vol .legend { right: auto; }
}

/* ---------- Foncier: the scan ---------- */
.uc-scan-c { display: none; }
.uc-scan-c dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; }
.uc-scan-c dt { color: var(--encre-2); }
.uc-scan-c dd { margin: 0; font-weight: var(--g-fort); }
.uc-scan-l { left: auto; right: 8px; bottom: 8px; flex-direction: column; gap: 3px; }
@media (min-width: 760px) {
  .uc-scan-c { display: block; right: 16px; top: 72px; width: 268px; }
  .uc-scan-l { flex-direction: row; gap: var(--e-3); right: 14px; bottom: 42px; }
}

/* ---------- Foncier: the aerial and the two sheets, at the top so the parcels stay clear ---------- */
.uc-aer { height: 280px; }
.uc-aer > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.uc-aer-c { padding: var(--e-3); }
@media (min-width: 760px) { svg .uc-sv-np { display: none; } }
.uc-aer-c--r { right: 8px; top: 8px; width: 204px; }
.uc-aer-c--l { display: none; }
.uc-aer-pv { margin-top: var(--e-2); font-weight: var(--g-h3); font-size: var(--t-valeur); }
.uc-aer-n { margin-top: var(--e-1); color: var(--encre-2); }
@media (min-width: 760px) {
  .uc-aer { height: 405px; }
  .uc-aer-c--r { right: 16px; top: 16px; width: 268px; }
  .uc-aer-c--l { display: block; left: 16px; top: 32px; width: 200px; }
}

@media (max-width: 759px) { .uc-aer-c--r .uc-kv dt:not(:nth-of-type(4)), .uc-aer-c--r .uc-kv dd:not(:nth-of-type(4)) { display: none; } }

/* ---------- Investisseur: the note and the curve ---------- */
.uc-mk { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-2); padding: var(--e-6) var(--e-3) var(--e-3); }
.uc-mk-n { display: flex; align-items: center; gap: var(--e-4); }
.uc-mk-n .gauge { display: none; }
.uc-mk-c { display: flex; justify-content: space-between; gap: var(--e-3); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.uc-mk-c b { color: var(--encre); font-weight: var(--g-h3); }
.uc-mk-k { display: none; }
.uc-mk-s { font-family: var(--f-ref); color: var(--encre); }
.uc-mk-g { display: grid; gap: var(--e-2); min-width: 0; }
.uc-pin { position: absolute; z-index: 2; display: grid; white-space: nowrap; padding: 3px var(--e-2); background: var(--feuille); border-radius: var(--r); box-shadow: var(--ombre-carte); font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); }
.uc-pin b { font-family: var(--f-ref); font-size: var(--t-ref); font-weight: var(--g-label); color: var(--encre); }
.uc-pin--a { transform: translate(-50%, 16px); }
.uc-pin--b { transform: translate(-100%, -128%); }
@media (min-width: 760px) {
  .uc-mk { grid-template-columns: 148px minmax(0, 1fr); gap: var(--e-6); align-items: center; min-height: 360px; padding: var(--e-6) var(--e-5) var(--e-5); }
  .uc-mk-n { flex-direction: column; align-items: flex-start; gap: var(--e-3); }
  .uc-mk-n .gauge { display: block; width: 148px; height: 148px; }
  .uc-mk-c { display: grid; gap: 0; }
  .uc-mk-c b { font-size: var(--t-valeur); line-height: var(--l-h3); }
  .uc-mk-k { display: inline; }
  .uc-mk-s { display: none; }
}

/* ---------- Investisseur: the DVF layer ---------- */
.uc-dvf-lb text { font-family: var(--f-ref); font-size: var(--t-dessin); font-weight: var(--g-label); fill: var(--prix-5); }
.uc-dvf-lb rect { fill: var(--feuille); }
.uc-dvf-lb g { filter: drop-shadow(0 1px 1px rgba(43, 32, 24, .10)) drop-shadow(0 4px 8px rgba(43, 32, 24, .18)); }
.uc-ramp { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; padding: var(--e-2) var(--e-3) var(--e-3); background: var(--feuille); border-radius: var(--r); box-shadow: var(--ombre-carte); }
.uc-ramp-t { display: block; font-size: var(--t-label); line-height: var(--l-label); font-weight: var(--g-fort); }
.uc-ramp-b { display: block; height: 10px; margin-top: 6px; border-radius: var(--r); background: linear-gradient(90deg, var(--prix-1), var(--prix-2) 25%, var(--prix-3) 50%, var(--prix-4) 75%, var(--prix-5)); }
.uc-ramp-s { display: flex; justify-content: space-between; margin-top: 3px; font-family: var(--f-ref); font-size: var(--t-ref); line-height: var(--l-ref); color: var(--encre-2); white-space: nowrap; }
.uc-planche--wide .plan-commune, .uc-planche--wide .plan-coord { display: none; }
@media (min-width: 760px) { .uc-ramp { left: auto; right: 14px; bottom: 14px; width: 272px; } }
@media (max-width: 759px) { .uc-planche--wide .plan-scale, .uc-dvf-lb .o { display: none; } }

/* ---------- The two other professions ---------- */
.uc-more { padding-block: var(--e-7); }
.uc-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-5); }
.uc-more li { display: grid; gap: var(--e-1); }
.uc-more span { font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.uc-more .lk { font-size: var(--t-valeur); line-height: var(--l-small); }
