/* Trame « rue » (docs/trame-rue.md) : chargée après style.css sur les sites qui l'activent (html.trame-rue).
   Les couleurs de l'identité (--accent, --ciel, --eau, --fa1…, --vo1…) sont posées par la page (generateur/identites.py).
   Parti pris : traits fins, couleurs adoucies, canal clair, chiffres au trait ; la nuit (mode sombre) garde la même rue. */
:root.trame-rue {
  --fond: #fbfbfa;
  --surface: #ffffff;
  --encre: var(--encre-site);
  --encre-2: color-mix(in oklab, var(--encre-site) 78%, #8d8178);
  --muet: color-mix(in oklab, var(--encre-site) 58%, #a49a91);
  --filet: color-mix(in oklab, var(--encre-site) 10%, #fff);
  --piste: color-mix(in oklab, var(--ciel) 45%, #fff);
  --pale: color-mix(in oklab, var(--ciel) 34%, #fff);
  --s1: var(--eau);
  --serif: var(--titres);
  --sans: var(--texte);
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(20, 30, 40, .04);
  --ombre-haute: 0 1px 2px rgba(20, 30, 40, .05), 0 18px 40px -24px rgba(20, 40, 60, .4);
  --gres: color-mix(in oklab, var(--second) 38%, #efe7e1);
  --gres-clair: color-mix(in oklab, var(--gres) 55%, #fff);
  --tuile-pan: var(--tuile);
  --rive-o: color-mix(in oklab, var(--tuile) 68%, #000);
  --corniche: color-mix(in oklab, var(--f1) 80%, #8a7d64);
  --nuit: 0;
  /* couleurs de la rue : jour (remappées la nuit plus bas) */
  --f1: var(--fa1); --f2: var(--fa2); --f3: var(--fa3); --f4: var(--fa4); --f5: var(--fa5); --f6: var(--fa6);
  --v1: var(--vo1); --v2: var(--vo2, var(--vo1)); --v3: var(--vo3, var(--vo1)); --v4: var(--vo4, var(--vo1));
  --vitre: #d3e2ea;
  --vitre-allumee: #d3e2ea;
  --trait: var(--bois);
  --canal: color-mix(in oklab, var(--ciel) 74%, #7c9eae);
  --sur-canal: color-mix(in oklab, var(--encre-site) 72%, var(--eau));
  --val-canal: var(--encre-site);
  --ride: .38;
  --loin: color-mix(in oklab, var(--ciel) 86%, #6d8c9c);
  --loin-2: color-mix(in oklab, var(--ciel) 76%, #6d8c9c);
  --survol: color-mix(in oklab, var(--ciel) 60%, #fff);
}
@media (prefers-color-scheme: dark) {
  :root.trame-rue:not([data-theme="light"]) {
    --ciel: #0f1d25; --eau: #0a151b; --fond: #111517; --surface: #171d20; --encre: #f1ebe4;
    --encre-2: #cbc3ba; --muet: #9c958d; --filet: #283035; --piste: #1d262b; --pale: #141b1f; --s1: #6fa3b8;
    --accent-texte: color-mix(in oklab, var(--accent) 45%, white);
    --f1: color-mix(in oklab, var(--fa1) 40%, #0f1b22); --f2: color-mix(in oklab, var(--fa2) 40%, #0f1b22);
    --f3: color-mix(in oklab, var(--fa3) 40%, #0f1b22); --f4: color-mix(in oklab, var(--fa4) 40%, #0f1b22);
    --f5: color-mix(in oklab, var(--fa5) 40%, #0f1b22); --f6: color-mix(in oklab, var(--fa6) 40%, #0f1b22);
    --v1: color-mix(in oklab, var(--vo1) 55%, #0f1b22); --v2: color-mix(in oklab, var(--vo2, var(--vo1)) 55%, #0f1b22);
    --v3: color-mix(in oklab, var(--vo3, var(--vo1)) 55%, #0f1b22); --v4: color-mix(in oklab, var(--vo4, var(--vo1)) 55%, #0f1b22);
    --vitre: #1c2a33; --vitre-allumee: #f2c46a; --trait: #120c0a; --gres: color-mix(in oklab, var(--second) 40%, #0f1b22);
    --loin: #142530; --loin-2: #18303d; --nuit: 1; --canal: #0a151b; --sur-canal: #a9bcc4; --val-canal: #fff; --ride: .16; --tuile-pan: color-mix(in oklab, var(--tuile) 45%, #0f1b22);
    --survol: #1f2c33; --ombre: none; --ombre-haute: 0 18px 40px -24px rgba(0, 0, 0, .7);
  }
}
:root.trame-rue[data-theme="dark"] {
  --ciel: #0f1d25; --eau: #0a151b; --fond: #111517; --surface: #171d20; --encre: #f1ebe4;
  --encre-2: #cbc3ba; --muet: #9c958d; --filet: #283035; --piste: #1d262b; --pale: #141b1f; --s1: #6fa3b8;
  --accent-texte: color-mix(in oklab, var(--accent) 45%, white);
  --f1: color-mix(in oklab, var(--fa1) 40%, #0f1b22); --f2: color-mix(in oklab, var(--fa2) 40%, #0f1b22);
  --f3: color-mix(in oklab, var(--fa3) 40%, #0f1b22); --f4: color-mix(in oklab, var(--fa4) 40%, #0f1b22);
  --f5: color-mix(in oklab, var(--fa5) 40%, #0f1b22); --f6: color-mix(in oklab, var(--fa6) 40%, #0f1b22);
  --v1: color-mix(in oklab, var(--vo1) 55%, #0f1b22); --v2: color-mix(in oklab, var(--vo2, var(--vo1)) 55%, #0f1b22);
  --v3: color-mix(in oklab, var(--vo3, var(--vo1)) 55%, #0f1b22); --v4: color-mix(in oklab, var(--vo4, var(--vo1)) 55%, #0f1b22);
  --vitre: #1c2a33; --vitre-allumee: #f2c46a; --trait: #120c0a; --gres: color-mix(in oklab, var(--second) 40%, #0f1b22);
  --loin: #142530; --loin-2: #18303d; --nuit: 1; --canal: #0a151b; --sur-canal: #a9bcc4; --val-canal: #fff; --ride: .16; --tuile-pan: color-mix(in oklab, var(--tuile) 45%, #0f1b22);
  --survol: #1f2c33; --ombre: none; --ombre-haute: 0 18px 40px -24px rgba(0, 0, 0, .7);
}

/* ---------- typographie ---------- */
.trame-rue body { font-family: var(--texte); background: var(--fond); }
.trame-rue h1, .trame-rue h2, .trame-rue h3 { font-family: var(--titres); font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.trame-rue h1 { font-weight: 500; font-size: clamp(2.6rem, 5.2vw, 4.55rem); line-height: 1.02; }
.trame-rue h2 { font-size: clamp(1.9rem, 3.1vw, 2.55rem); line-height: 1.08; }
.trame-rue h3 { font-size: 1.42rem; line-height: 1.15; }
.h1-suite { color: var(--accent-texte); }
.trame-rue .surtitre { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.trame-rue .lien-fleche::after { content: none; }
.trame-rue .carte-suite { display: block; width: fit-content; }
.trame-rue .lien-fleche, .trame-rue .lien-fort { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .25em; text-decoration-color: color-mix(in oklab, var(--accent-texte) 45%, transparent); }
.trame-rue .lien-fleche:hover, .trame-rue .lien-fort:hover { text-decoration-color: currentColor; }
.trame-rue .bouton, .trame-rue .recherche button { border-radius: 8px; font-weight: 600; letter-spacing: .005em; }
.trame-rue .bouton-grand { padding: 13px 22px; font-size: 1.02rem; }

/* ---------- en-tête sur le ciel ---------- */
.trame-rue .entete { background: var(--ciel); border-bottom: 0; }
.trame-rue .entete-in { min-height: 84px; }
.trame-rue .nav a { color: var(--encre-2); font-weight: 500; }
.trame-rue .nav a:hover { background: var(--survol); color: var(--encre); }
.trame-rue .nav a[aria-current="page"] { background: var(--surface); color: var(--accent-texte); }
.logo-rue { gap: 11px; font-family: var(--titres); color: var(--encre); }
.logo-rue .embleme { width: 38px; height: 44px; flex: none; display: block; }
.logo-mots { display: flex; flex-direction: column; line-height: .92; }
.logo-region { font-size: 1.95rem; font-weight: 600; color: var(--encre); }
.logo-metier { font-family: var(--texte); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-texte); padding-left: 1px; margin-top: 4px; }
.logo-rue:hover .logo-region { color: var(--accent-texte); }

/* ---------- ouverture : la rue ---------- */
.rue-une { background: linear-gradient(180deg, var(--ciel) 0, color-mix(in oklab, var(--ciel) 72%, #fff) 100%); }
:root.trame-rue[data-theme="dark"] .rue-une { background: var(--ciel); }
@media (prefers-color-scheme: dark) { :root.trame-rue:not([data-theme="light"]) .rue-une { background: var(--ciel); } }
.rue-une-texte { padding-top: 22px; position: relative; z-index: 2; pointer-events: none; }
.rue-une-texte > * { pointer-events: auto; }
.rue-une h1 { max-width: 22ch; margin-bottom: .36em; }
.rue-une .chapo { color: var(--encre-2); max-width: 50ch; font-size: 1.1rem; line-height: 1.6; text-wrap: pretty; }
.rue-une .recherche { margin: 26px 0 0; max-width: 470px; }
.rue-une .recherche label { font-size: .84rem; font-weight: 600; color: var(--encre-2); letter-spacing: .01em; }
.rue-une .recherche-champ { gap: 0; padding: 5px; background: var(--surface); border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--encre) 12%, transparent); box-shadow: var(--ombre-haute); transition: box-shadow .2s, border-color .2s; }
.rue-une .recherche-champ:focus-within { border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent), var(--ombre-haute); }
.rue-une .recherche input { border: 0; background: transparent; padding: 11px 12px; min-width: 0; }
.rue-une .recherche input:focus { outline: none; }
.rue-une .recherche button { min-height: 44px; padding: 0 18px; }
.rue { margin: -26px 0 0; }
/* ordinateur : la rue remonte sous le titre de la hauteur du ciel libre au-dessus des maisons basses de gauche
   (--rue-libre, calculé par rue.py, en part de la largeur du dessin) ; les maisons hautes montent à droite du texte */
@media (min-width: 1041px) {
  .rue { margin-top: 0; }
  .rue-defil { margin-top: calc(min(100%, 1360px) * var(--rue-libre, 0) * -1); }
}
.rue-defil { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: linear-gradient(to top, var(--canal) 0 var(--eau-bas), var(--gres) var(--eau-bas) var(--eau-haut), transparent var(--eau-haut)); }
.rue-defil::-webkit-scrollbar { display: none; }
.rue-svg { display: block; width: 100%; max-width: 1360px; height: auto; margin: 0 auto; overflow: visible; }
.rue-legende { background: var(--canal); color: var(--sur-canal); font-size: .88rem; line-height: 1.5; padding: 4px 0 30px; }
.rue-legende p { max-width: 80ch; margin: 0; }

/* dessin : les traits prennent une teinte plus sombre de leur façade (--fac, posé sur chaque maison par rue.py) */
.rue-svg .lune { fill: #f3ead2; opacity: var(--nuit); }
.rue-svg .lointain { fill: var(--loin); }
.rue-svg .lointain-2 { fill: var(--loin-2); }
.rue-svg .eau { fill: var(--canal); }
.rue-svg .quai { fill: var(--gres); }
.rue-svg .quai-joints path { stroke: color-mix(in oklab, var(--gres) 82%, #000); stroke-width: .5; }
.rue-svg .ride { stroke: #fff; stroke-opacity: var(--ride); stroke-width: 1; stroke-linecap: round; fill: none; }
.rue-svg .reflet { opacity: .38; }
/* le reflet s'efface en profondeur sous un dégradé couleur de l'eau (pas de masque SVG : Chrome ne repeint pas un masque
   posé sur des <use> au premier affichage) */
.rue-svg .eau-stop { stop-color: var(--canal); }
.rue-svg .zone { fill: transparent; }
.rue-svg .maison { --ligne: color-mix(in oklab, var(--fac, var(--trait)) 42%, var(--trait)); }
.rue-svg .bois { stroke: var(--ligne); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rue-svg .croisillon { stroke: #fff; stroke-opacity: calc(.9 - var(--nuit) * .7); fill: none; }
.rue-svg .vitre { fill: var(--vitre); stroke: var(--ligne); stroke-width: .45; }
.rue-svg .dessus .vitre:nth-of-type(3n + 1), .rue-svg .dessus .vitre:nth-of-type(7n + 2) { fill: var(--vitre-allumee); }
.rue-svg .volet { stroke: none; }
.rue-svg .porte { fill: color-mix(in oklab, var(--fac, var(--bois)) 32%, #6e5443); stroke: none; }
.rue-svg .gres { fill: var(--gres); }
.rue-svg .gres-clair { fill: var(--gres-clair); }
.rue-svg .tuile-pan { fill: var(--tuile-pan); }
.rue-svg .tuile-rang { stroke: color-mix(in oklab, var(--tuile) 80%, #000); fill: none; }
.rue-svg .rive { stroke: var(--tuile-pan); stroke-width: 2.8; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.rue-svg .rive-o { stroke: var(--rive-o); stroke-width: 3.8; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.rue-svg .souche { fill: color-mix(in oklab, var(--gres) 70%, #fff); stroke: color-mix(in oklab, var(--gres) 55%, #000); stroke-width: .45; }
.rue-svg .jardiniere { fill: color-mix(in oklab, var(--fac, var(--bois)) 35%, #7a5a40); }
.rue-svg .feuille { fill: #82a079; }
.rue-svg .fleur { fill: #c95560; }
.rue-svg .fleur-2 { fill: #e8a6a2; }
.rue-svg .nid-fond { fill: #8f7256; }
.rue-svg .nid-brin { stroke: #5f4630; stroke-width: .7; fill: none; }
.rue-svg .cig-blanc { fill: #fff; stroke: #3a2c24; stroke-width: .45; }
.rue-svg .cig-noir { fill: #221c19; }
.rue-svg .cig-patte { stroke: #d0583a; stroke-width: 1; fill: none; }
.rue-svg .cig-bec { fill: #d9603a; }
.rue-svg .cig-cou { stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; }
.rue-svg .cig-cou-o { stroke: #3a2c24; stroke-width: 3.5; fill: none; stroke-linecap: round; }
.rue-svg .cigogne-loin .cig-blanc { stroke-width: .8; }
.rue-svg .cigogne-posee { transition: opacity .25s; }
.rue-vol .cigogne-posee { opacity: 0; }
/* immeubles haussmanniens (Île-de-France) */
.rue-svg .vitrine { fill: color-mix(in oklab, var(--bois) 60%, #6d7b8a); }
.rue-svg .balcon { fill: var(--ligne, var(--trait)); }
.rue-svg .fer { stroke: var(--ligne, var(--trait)); fill: none; }
.rue-svg .corniche { fill: var(--corniche); }
.rue-svg .zinc { fill: var(--tuile-pan); }
.rue-svg .zinc-rang { stroke: color-mix(in oklab, var(--tuile) 78%, #000); fill: none; }
.rue-svg .lucarne-h { fill: color-mix(in oklab, var(--tuile) 70%, #fff); stroke: var(--ligne, var(--trait)); stroke-width: .5; }
.rue-svg .pot { fill: #b8673f; }
/* étiquettes sur l'eau : le loyer, puis le nom en petites capitales espacées */
.rue-svg .rue-nom { fill: var(--sur-canal); font: 600 10.5px/1 var(--texte); letter-spacing: .09em; text-transform: uppercase; text-anchor: middle; }
.rue-svg .rue-nom, .rue-svg .rue-val { paint-order: stroke; stroke: var(--canal); stroke-width: 3px; stroke-linejoin: round; }
.rue-svg .rue-val { fill: var(--val-canal); font: 500 17px/1 var(--texte); letter-spacing: -.01em; text-anchor: middle;
  font-variant-numeric: tabular-nums; }
.rue-svg .rue-unite { font: 500 10px/1 var(--texte); fill: var(--sur-canal); }
.rue-svg .maison { cursor: pointer; outline: none; }
.rue-svg .maison .batisse { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.rue-svg .maison:hover .batisse { transform: translateY(-3px); }
.rue-svg .maison:hover .rue-nom, .rue-svg .maison:focus-visible .rue-nom { fill: var(--val-canal); }
.rue-svg .maison:focus-visible .zone { fill: rgba(255, 255, 255, .14); stroke: var(--accent); stroke-width: 1.5; }

/* ouverture : les maisons montent étage par étage (durée proportionnelle au nombre d'étages), puis fleurs et cigogne */
@media (prefers-reduced-motion: no-preference) {
  .rue-svg .batisse {
    animation: rue-monte calc(.45s + var(--e) * .13s) cubic-bezier(.3, .2, .2, 1) calc(.15s + var(--i) * .1s) backwards;
  }
  .rue-svg .fleurs { transform-box: fill-box; transform-origin: 50% 100%;
    animation: rue-pousse .45s cubic-bezier(.3, 1.5, .5, 1) calc(1.15s + var(--i) * .1s) both; }
  .rue-svg .maison .rue-nom, .rue-svg .maison .rue-val { animation: rue-apparait .6s ease calc(.7s + var(--i) * .07s) both; }
  .rue-svg .nid { animation: rue-apparait .3s ease calc(1.1s + var(--i) * .1s) both; }
  .rue-svg .ride { animation: rue-ride 9s ease-in-out infinite alternate; animation-delay: calc(var(--r) * -2s); }
  .rue-svg .lointains { animation: rue-apparait 1.2s ease .1s both; }
  .rue-svg .vols { animation: rue-apparait 1.5s ease 1.6s both; }
  /* le reflet apparaît en bloc une fois les maisons montées */
  .rue-svg .reflet { animation: rue-apparait 1.4s ease 1.2s backwards; }
}
@keyframes rue-monte { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes rue-pousse { from { transform: scale(0); } }
@keyframes rue-apparait { from { opacity: 0; } }
@keyframes rue-ride { to { transform: translateX(16px); stroke-opacity: calc(var(--ride) * 1.6); } }

/* ---------- chiffres clés : filets fins, pictogrammes au trait ---------- */
.chiffres { background: var(--surface); padding: 44px 0 20px; }
.chiffres-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--filet); }
.chiffres-liste li { display: flex; }
.chiffres-liste li + li { border-left: 1px solid var(--filet); }
.chiffres-liste a { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 28px; color: var(--encre); text-decoration: none;
  width: 100%; transition: background .2s; }
.chiffres-liste a:hover { background: color-mix(in oklab, var(--ciel) 28%, var(--surface)); }
.chiffre-icone { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: color-mix(in oklab, var(--accent) 7%, var(--surface)); color: var(--accent-texte); }
.chiffre-icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chiffre { font-family: var(--texte); font-weight: 300; font-size: clamp(2.1rem, 3.3vw, 2.75rem); line-height: 1; letter-spacing: -.025em;
  color: var(--encre); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.chiffre-texte { font-size: .93rem; color: var(--muet); line-height: 1.45; max-width: 28ch; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- sections ---------- */
.trame-rue .bloc { border-top: 0; padding: 64px 0; }
.trame-rue .bloc-tete { margin-bottom: 26px; }
.trame-rue .bloc-marche, .trame-rue .bloc-faq { background: var(--pale); }
.trame-rue .graph, .trame-rue .encadre, .trame-rue .faq-item, .trame-rue .tuile, .trame-rue .carte-photo {
  border-radius: var(--rayon); border-color: var(--filet); box-shadow: var(--ombre); }
.trame-rue .encadre { border-left: 1px solid var(--filet); }
.trame-rue .puces a { border-radius: 999px; }

/* communes : mosaïque de photos (deux grandes, six petites) */
.mosaique { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 172px; gap: 12px; grid-auto-flow: row dense; }
.mosaique > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaique > :nth-child(6) { grid-column: 3 / 5; grid-row: 3 / 5; }
.tc { position: relative; overflow: hidden; border-radius: var(--rayon); color: #fff; text-decoration: none; background: var(--eau); isolation: isolate; }
.tc-image, .tc-image picture, .tc-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tc-image img { object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tc:hover .tc-image img { transform: scale(1.035); }
.tc-texte { position: absolute; inset: auto 0 0 0; padding: 48px 18px 15px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(to top, rgba(14, 12, 10, .72), rgba(14, 12, 10, 0)); }
.tc-nom { font-family: var(--titres); font-weight: 600; font-size: 1.5rem; line-height: 1.05; }
.tc-grande .tc-nom { font-size: clamp(1.95rem, 3.1vw, 2.5rem); }
.tc-detail { font-size: .82rem; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.tc:focus-visible { outline-offset: 3px; }
.communes-suite { margin-top: 28px; }
.communes-titre { font-family: var(--titres); font-weight: 600; font-size: 1.4rem; margin-bottom: .5em; }

/* estimation : grande photo, texte sur une plaque claire */
.estimation-rue { position: relative; min-height: 470px; display: grid; align-items: center; padding: 64px 0; isolation: isolate; color: var(--encre); }
.er-photo, .er-photo picture, .er-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.er-photo img { object-fit: cover; }
.er-texte { background: color-mix(in oklab, var(--surface) 95%, transparent); max-width: 30rem; padding: 32px 34px 28px; border-radius: 16px;
  box-shadow: 0 30px 70px -36px rgba(10, 20, 30, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.er-texte h2 { margin-bottom: .4em; }
.er-texte p { color: var(--encre-2); }
.er-texte p:last-child { margin: 20px 0 0; }
.estimation-rue .credit { position: absolute; right: 12px; bottom: 8px; color: #fff; text-shadow: 0 1px 2px #000; font-size: .72rem; }
.estimation-rue .credit a { color: inherit; }

/* le marché */
.marche-grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.marche-bas { margin-top: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); }
.marche-texte .lead { font-size: 1.12rem; line-height: 1.65; }
.marche-deps h3 { margin-bottom: 14px; }
.marche-deps .cartes-photo { grid-template-columns: 1fr; gap: 12px; }
.trame-rue .graph { margin-bottom: 10px; }

/* actualités : une grande, trois petites, la presse à côté */
.actus { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.actus-articles { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.actu { display: grid; gap: 10px; color: var(--encre); text-decoration: none; }
.actu-image { display: block; overflow: hidden; border-radius: var(--rayon); aspect-ratio: 16 / 10; background: var(--piste); }
.actu-image img, .actu-image picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.actu-corps { display: grid; gap: 6px; }
.actu-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--muet); }
.actu-rubrique { color: var(--accent-texte); font-weight: 600; }
.actu-titre { font-family: var(--titres); font-weight: 600; font-size: 1.32rem; line-height: 1.18; }
.actu-une .actu-titre { font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
.actu-texte { color: var(--encre-2); font-size: .97rem; }
.actu:hover .actu-titre { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.actus-petites { display: grid; gap: 18px; }
.actus-petites .actu { grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 14px; }
.actus-petites .actu-image { aspect-ratio: 1; }
.actus-presse h3 { margin-bottom: 8px; }
.actus-presse .presse li { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
.actus-presse .presse a { font-weight: 600; }

.trame-rue .bloc-pros .bandeau-agences { border-radius: var(--rayon); }

/* pied : encre profonde */
.trame-rue .pied { background: color-mix(in oklab, var(--encre-site) 30%, #16191c); margin-top: 0; }
.trame-rue .pied-nom { font-family: var(--titres); font-size: 1.5rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 10px; }
.trame-rue .pied-nom .embleme { width: 32px; height: 37px; }

/* graphiques : les barres se remplissent à leur apparition (classe posée par trame-rue.js) */
@media (prefers-reduced-motion: no-preference) {
  .graph-anim .barre-remplie { transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1) calc(var(--n, 0) * 55ms); }
  .graph-anim .empile-barre { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.2, .7, .2, 1) calc(var(--n, 0) * 90ms); }
  .graph-anim.vu .barre-remplie { transform: none; }
  .graph-anim.vu .empile-barre { clip-path: inset(0); }
}

/* ---------- petits écrans ---------- */
@media (max-width: 1040px) {
  .chiffres-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffres-liste li:nth-child(3) { border-left: 0; }
  .chiffres-liste li:nth-child(n + 3) { border-top: 1px solid var(--filet); }
  .actus { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .trame-rue .entete-in { min-height: 0; }
  .marche-grille, .marche-bas { grid-template-columns: minmax(0, 1fr); }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaique > :nth-child(1), .mosaique > :nth-child(6) { grid-column: 1 / 3; grid-row: span 2; }
}
@media (max-width: 720px) {
  .rue { margin-top: 4px; }
  .rue-svg { width: auto; height: 350px; max-width: none; }
  .actus-articles { grid-template-columns: minmax(0, 1fr); }
  .estimation-rue { min-height: 0; padding: 0 0 24px; align-items: end; }
  .er-photo { position: relative; height: 240px; }
  .er-photo picture, .er-photo img { position: absolute; }
  .er-texte { margin-top: -40px; position: relative; }
  .estimation-rue .credit { position: static; display: block; color: var(--muet); text-shadow: none; padding: 8px 24px 0; }
}
@media (max-width: 600px) {
  .chiffres-liste a { padding: 18px 14px 20px; }
  .chiffre { font-size: 1.85rem; }
  .chiffre-icone { width: 36px; height: 36px; margin-bottom: 4px; }
  .chiffre-icone svg { width: 19px; height: 19px; }
  .logo-region { font-size: 1.55rem; }
}
