/* Les rues de Paris.
   Consigne de Jean-Noël (04/11/2026) : sans fioriture, du texte seulement, de la couleur, écrit en gros, la police
   Faune et ses différents corps. Donc : aucun cadre, aucun pictogramme, aucune carte ; la hiérarchie ne tient qu'à la
   taille, à la graisse (Display Thin / Black, Text) et à la couleur. Un fond de couleur franc, deux couleurs d'accent. */

:root {
  --fond: #2733c9;        /* outremer */
  --texte: #fbf7ee;
  --jaune: #ffd23f;       /* les numéros, ce qu'on cherche des yeux */
  --rose: #ffb3c8;        /* les thèmes (histoire, plaque, tournage) */
  --doux: #c9cff7;        /* le secondaire : distances, précisions, sources */
  --display: 'Faune Display', Georgia, serif;
  --text: 'Faune Text', Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 400 1.2rem/1.5 var(--text);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--jaune); outline-offset: 3px; }
::selection { background: var(--jaune); color: var(--fond); }

/* --- en bas : « ici » et la recherche, en verre (style « Liquid Glass » d'iOS 26) ---------------- */
/* Seule exception à « sans fioriture », voulue par Jean-Noël : une capsule translucide qui flotte au-dessus du
   texte et le floute. Elle remonte au-dessus du clavier (--clavier, calculé dans app.js). */
.barre {
  position: fixed; z-index: 10; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + .75rem + var(--clavier, 0px));
  display: flex; gap: .6rem; padding: 0 .9rem; max-width: 42rem; margin: 0 auto;
  transition: bottom .2s ease;
}
.verre {
  position: relative; height: 3.3rem; border-radius: 999px; overflow: hidden;
  /* Peu de teinte et un flou léger : le texte qui passe dessous reste visible, adouci, comme sous du verre. */
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(5px) saturate(170%) brightness(1.08); backdrop-filter: blur(5px) saturate(170%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .12),
              0 10px 30px rgba(8, 12, 60, .38), 0 2px 6px rgba(8, 12, 60, .2);
}
.verre::before {   /* le reflet sur le haut de la capsule */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%);
}
.barre-ici {
  flex: none; width: 3.3rem; display: grid; place-items: center; text-decoration: none;
  font: 900 1.25rem/1 var(--display); color: var(--jaune);
}
.recherche { flex: 1; display: flex; align-items: center; gap: .5rem; padding: 0 1.1rem; }
.recherche svg { flex: none; width: 1.25rem; fill: none; stroke: var(--texte); stroke-width: 2.2; stroke-linecap: round; opacity: .85; }
.recherche input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--texte);
  font: 400 1.15rem var(--text); outline: none; -webkit-appearance: none; appearance: none;
}
.recherche input::placeholder { color: rgba(251, 247, 238, .72); }
.recherche input::-webkit-search-cancel-button { filter: invert(1); }
.recherche:focus-within { border-color: rgba(255, 210, 63, .8); }
.barre-ici:active, .recherche:active { transform: scale(.98); }

main { max-width: 42rem; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 1rem) 1.25rem calc(env(safe-area-inset-bottom) + 7rem); }

/* --- le nom de la rue : le plus gros ----------------------------------------------------------- */
.titre { display: block; margin: .5rem 0 0; text-decoration: none; }
.titre .arr { display: block; font: 100 1.9rem/1 var(--display); color: var(--doux); }
.titre .nom { display: block; font: 900 clamp(2.9rem, 14vw, 5.2rem)/.92 var(--display); letter-spacing: -.01em; hyphens: auto; overflow-wrap: break-word; }
a.titre:hover .nom { color: var(--jaune); }

/* --- l'accueil : où suis-je --------------------------------------------------------------------- */
.ici-etat { margin: .8rem 0 0; color: var(--doux); font-size: 1rem; }
.ici-origine { margin: 1.6rem 0 0; font-size: 1.35rem; line-height: 1.4; }
.attente { font: 100 2.2rem/1.15 var(--display); margin-top: 2rem; }
.lien-fort { display: inline-block; margin-top: 1.2rem; font: 900 1.9rem/1.1 var(--display); color: var(--jaune); }

h2 { font: 100 2.5rem/1.05 var(--display); margin: 3rem 0 1rem; }

.proches { list-style: none; margin: 0; padding: 0; }
.proches li + li { margin-top: .5rem; }
.proches a { display: block; text-decoration: none; font: 900 1.7rem/1.1 var(--display); }
.proches .d { font: 100 1.5rem var(--display); color: var(--doux); white-space: nowrap; }
.proches a:hover { color: var(--jaune); }

/* --- la fiche ------------------------------------------------------------------------------------ */
.mesures { margin: 1rem 0 0; color: var(--doux); font-size: 1.05rem; }
.fiche p { margin: .5rem 0; }
.historique { font-style: italic; }
.chapeau { font-size: 1.35rem; line-height: 1.4; margin-top: 1.4rem !important; }

.cotes { display: flex; gap: 1.2rem; margin: -.3rem 0 1.4rem; font: 100 1.5rem var(--display); }
.cotes button { color: var(--doux); }
.cotes button[aria-pressed="true"] { color: var(--texte); font-weight: 900; }

.maisons { list-style: none; margin: 0; padding: 0; }
.maison { display: grid; grid-template-columns: 4.9rem 1fr; gap: 1.5rem; padding: 1.1rem 0; }
/* Une seule taille pour tous les numéros ; la colonne tient trois chiffres. Les numéros longs passent à la ligne. */
.num { font: 900 2.5rem/.95 var(--display); color: var(--jaune); }
.num span { display: block; white-space: nowrap; }
.num small { font-weight: 100; font-size: .55em; vertical-align: .25em; margin-right: .08em; }
.elements { min-width: 0; padding-top: .2rem; }
.el { margin: 0 0 1rem; }
.el:last-child { margin-bottom: 0; }
.el p { margin: .1rem 0 0; }
.theme { display: block; font: italic 400 1rem/1.2 var(--text); color: var(--rose); }
.mh { font-size: .95rem; color: var(--doux); font-style: italic; }

/* Le texte gravé des plaques : en capitales, comme sur la pierre, dans le corps fin. */
.grave { margin: .2rem 0 0; font: 100 1.35rem/1.2 var(--display); letter-spacing: .03em; }
.grave span { display: block; }

.arbre-photo { width: 100%; max-height: 16rem; object-fit: cover; margin-top: .5rem; display: block; }
.credit { font-size: .85rem; color: var(--doux); }

.oeuvres { list-style: none; padding: 0; }
.oeuvres li { margin-bottom: .9rem; }

.sources { margin-top: 4rem; font-size: .9rem; line-height: 1.45; color: var(--doux); }

/* --- la recherche --------------------------------------------------------------------------------- */
.resultats { list-style: none; margin: 0; padding: 0; }
.resultats li + li { margin-top: .55rem; }
.resultats a { display: block; text-decoration: none; font: 900 1.6rem/1.1 var(--display); }
.resultats .d { font: 100 1.4rem var(--display); color: var(--doux); }
.resultats a:hover { color: var(--jaune); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
