/* ═══════════════════════════════════════════════════════════════
   Pages terrain — /terrain/<code>, rendues par server.js.
   Chargée APRÈS pages.css (barre du haut, pied de page, boutons).

   Une page de donnée en direct, pas une notice : l'en-tête est le ciel
   du METAR (illustrations de l'app iPhone, /mobile/img/ciel/), les
   chiffres sont posés sur du verre, les cartes suivent la grammaire de
   l'app — aplat en dégradé de la couleur du domaine, icône blanche,
   statuts en pastilles (point de couleur + texte encre).
   Charte (shared/charte.css) : pas de noir, bleu nuit et encre bleutée.
   ═══════════════════════════════════════════════════════════════ */
.page-terrain {
  --encre: #0D1829; --encre-2: #4A607C; --encre-3: #64778f;
  --action: #2563EB; --action-hover: #1D4ED8; --nuit: #0B1F5C;
  --carte-bg: rgba(255, 255, 255, .78); --carte-bord: rgba(255, 255, 255, .9);
  --carte-ombre: 0 1px 2px rgba(13, 24, 41, .04), 0 12px 32px -12px rgba(13, 24, 41, .14);
  --tuile: rgba(37, 99, 235, .06); --filet: rgba(13, 24, 41, .08);
  --go: #16a34a; --mvfr: #2563eb; --no: #dc2626; --ambre: #d97706;
  --dom-meteo-a: #0036FF;     --dom-meteo-b: #0093FF;
  --dom-route-a: #0036FF;     --dom-route-b: #0093FF;
  --dom-notam-a: #B45309;     --dom-notam-b: #F59E0B;
  --dom-espaces-a: #6D28D9;   --dom-espaces-b: #A855F7;
  --dom-masse-a: #0E7490;     --dom-masse-b: #06B6D4;
  color: var(--encre);
}
.page-terrain .nav { position: sticky; }

/* ── En-tête : le ciel du METAR ── */
.tr-hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff; padding: 40px 0 32px; min-height: 560px;
  display: flex; align-items: flex-end;
}
.tr-ciel {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #1046e9 0%, #1096e5 58%, #44a4e9 100%) center 38% / cover no-repeat;
}
.tr-ciel { background-size: cover; background-position: center 38%; }
.tr-voile {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 21, 48, .30) 0%, rgba(11, 21, 48, 0) 30%, rgba(11, 21, 48, .05) 50%, rgba(11, 21, 48, .62) 100%);
}
.tr-hero-in { width: 100%; max-width: 1080px; }

.tr-direct {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  font-size: 13px; font-weight: 500; text-shadow: 0 1px 2px rgba(11, 21, 48, .25);
}
.tr-pouls {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: tr-pouls 2s ease-out infinite;
}
.tr-direct.is-vieux .tr-pouls, .tr-direct.is-muet .tr-pouls { background: #fbbf24; animation: none; box-shadow: none; }
@keyframes tr-pouls { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.tr-age { opacity: .85; }

.tr-tete {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin: 20px 0 24px;
}
.tr-ident h1 { color: #fff; max-width: none; text-shadow: 0 2px 18px rgba(11, 21, 48, .35); }
.tr-code { display: block; font-size: clamp(56px, 10vw, 104px); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.tr-nom { display: block; margin-top: 8px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.tr-lieu { margin-top: 8px; color: rgba(255, 255, 255, .86); font-size: 15px; }

.tr-temps { display: flex; align-items: center; gap: 12px; }
.tr-wx { width: 112px; height: 112px; filter: drop-shadow(0 8px 24px rgba(11, 21, 48, .25)); }
.tr-temps > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tr-temp { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(11, 21, 48, .3); }
.tr-phen { font-size: 16px; font-weight: 500; }
.tr-cat, .tr-cat-mini {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; font-weight: 600;
}
.tr-cat {
  margin-top: 4px; padding: 4px 12px; font-size: 13px; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tr-cat .dot, .tr-cat-mini .dot { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.is-go .dot { background: #22c55e; }
.is-mvfr .dot { background: #3b82f6; }
.is-no .dot { background: #ef4444; }

.tr-tuiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tr-tuile {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.tr-tuile-lib { font-size: 12px; color: rgba(255, 255, 255, .8); }
.tr-tuile-v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.tr-tuile-sous { font-size: 12px; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-fleche { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; color: #fff; transition: transform .6s; }

.tr-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.tr-btn, .tr-btn-verre {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px var(--font); text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.tr-btn { background: var(--action); color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55); }
.tr-btn:hover { background: var(--action-hover); transform: translateY(-1px); }
.tr-btn-verre {
  color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tr-btn-verre:hover { background: rgba(255, 255, 255, .24); }

/* ── Tableau de bord ── */
.tr-grille {
  max-width: 1080px; position: relative; z-index: 1; margin-top: -8px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding-top: 24px;
}
.tr-l2 { grid-column: span 2; }
.tr-l3 { grid-column: 1 / -1; }
.tr-carte {
  padding: 22px 22px 20px; border-radius: 24px;
  background: var(--carte-bg); border: 1px solid var(--carte-bord); box-shadow: var(--carte-ombre);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  min-width: 0;
}
.tr-carte-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tr-carte-h h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--encre); flex: 1; }
.tr-dom {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.tr-carte-d { font-size: 12px; color: var(--encre-3); white-space: nowrap; }
.tr-source {
  padding: 3px 8px; border-radius: 999px; background: var(--tuile);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--encre-2);
}
.tr-gros { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--encre); line-height: 1.25; }
.tr-sous { font-size: 14px; color: var(--encre-2); margin-top: 4px; }
.tr-note { font-size: 13px; color: var(--encre-3); margin-top: 14px; }
.tr-note a, .tr-avert a { color: var(--action); }
.tr-vide { color: var(--encre-2); }
.page-terrain p, .page-terrain li { color: inherit; }

/* Piste au vent */
.tr-rose-bloc { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tr-rose { width: 100%; max-width: 230px; height: auto; overflow: visible; }
.tr-rose-fond { fill: var(--tuile); stroke: var(--filet); }
.tr-rose-grad { stroke: var(--encre-3); stroke-width: 1; opacity: .5; }
.tr-rose-grad.is-long { stroke-width: 2; opacity: .8; }
.tr-rose-n { font: 700 11px var(--font); fill: var(--encre-2); text-anchor: middle; }
.tr-rose-piste { fill: #94a3b8; }
.tr-rose-axe { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 6 6; }
.tr-rose-num { font: 700 11px var(--font); fill: var(--encre-2); text-anchor: middle; }
.is-actif .tr-rose-piste { fill: var(--nuit); }
.is-actif .tr-rose-num { fill: var(--action); }
.tr-rose-vent line { stroke: var(--action); stroke-width: 4; stroke-linecap: round; }
.tr-rose-vent path { fill: none; stroke: var(--action); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tr-rose-txt { width: 100%; text-align: center; }
.tr-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tr-paire div, .tr-trio div, .tr-quatre div { padding: 10px 12px; border-radius: 14px; background: var(--tuile); }
.tr-paire dt, .tr-trio dt, .tr-quatre dt { font-size: 12px; color: var(--encre-3); }
.tr-paire dd, .tr-trio dd, .tr-quatre dd { font-size: 18px; font-weight: 600; color: var(--encre); }
.tr-paire dd small, .tr-quatre dd small { font-size: 12px; font-weight: 400; color: var(--encre-3); }

/* NOTAM */
.tr-compte { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tr-chiffre { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--encre); }
.tr-compte span:last-child { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tr-compte small { font-size: 12px; font-weight: 400; color: var(--encre-3); }
.tr-notams { list-style: none; }
.tr-notams li { padding: 10px 0; border-top: 1px solid var(--filet); }
.tr-notam-ref { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--encre-3); }
.tr-notam-ref .dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.is-critique .tr-notam-ref .dot { background: var(--ambre); }
.tr-notam-ref b { font-weight: 600; color: var(--encre-2); }
.tr-notam-txt {
  margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--encre);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-plus summary { cursor: pointer; padding: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--action); list-style: none; }
.tr-plus summary::-webkit-details-marker { display: none; }
.tr-plus[open] summary { padding-bottom: 4px; }

/* Soleil */
.tr-soleil { text-align: center; }
.tr-arc { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto 6px; overflow: visible; }
.tr-arc-ciel { fill: none; stroke: var(--filet); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.tr-arc-fait { fill: none; stroke: #f59e0b; stroke-width: 3; stroke-linecap: round; }
.tr-arc-sol { stroke: var(--encre-3); stroke-width: 1; opacity: .4; }
.tr-arc-astre { fill: #fbbf24; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .8)); }
.tr-arc-astre.is-nuit { fill: #c7d2fe; filter: drop-shadow(0 0 5px rgba(199, 210, 254, .7)); }
.tr-soleil .tr-gros { font-size: 18px; }
.tr-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; text-align: left; }
.tr-trio dd { font-size: 16px; }
.tr-trio dd.tr-loc { font-size: 12px; font-weight: 400; color: var(--encre-3); }

/* METAR et TAF */
.tr-msg + .tr-msg { margin-top: 12px; }
.tr-msg-lib { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
.tr-msg pre {
  margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--tuile);
  font: 500 14px/1.6 var(--font); color: var(--encre); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* Fréquences */
.tr-freqs { list-style: none; display: grid; gap: 6px; }
.tr-freq {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 14px; background: var(--tuile);
  font: inherit; color: var(--encre); text-align: left; cursor: pointer;
  transition: background .15s, transform .15s;
}
.tr-freq:hover { background: rgba(37, 99, 235, .12); }
.tr-freq:active { transform: scale(.98); }
.tr-freq-v { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.tr-freq-k { font-size: 13px; color: var(--encre-2); }
.tr-freq svg { color: var(--encre-3); }
.tr-freq.is-copie { background: rgba(22, 163, 74, .14); }
.tr-freq.is-copie svg { color: var(--go); }

/* Pistes */
.tr-pistes { list-style: none; display: grid; gap: 6px; }
.tr-pistes li {
  display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: baseline;
  padding: 10px 12px; border-radius: 14px; background: var(--tuile);
}
.tr-piste-nom { font-size: 18px; font-weight: 700; }
.tr-piste-len { font-size: 15px; font-weight: 600; text-align: right; }
.tr-piste-det { grid-column: 1 / -1; font-size: 13px; color: var(--encre-2); }

/* Tour de piste et consignes */
.tr-quatre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.tr-quatre dd { font-size: 16px; }
.tr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 32px; }
.tr-col h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.tr-col p { font-size: 15px; line-height: 1.55; }
.tr-consignes { list-style: none; display: grid; gap: 10px; }
.tr-consignes li { font-size: 15px; line-height: 1.55; }
.tr-consignes b { display: block; font-size: 13px; font-weight: 600; color: var(--action); }

/* Voisins */
.tr-voisins { grid-column: 1 / -1; margin-top: 16px; }
.tr-voisins h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; color: var(--encre); }
.tr-voisins ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-voisins a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--encre);
  background: var(--carte-bg); border: 1px solid var(--carte-bord); box-shadow: var(--carte-ombre);
  transition: transform .15s;
}
.tr-voisins a:hover { transform: translateY(-2px); }
.tr-v-h { display: flex; justify-content: space-between; align-items: baseline; }
.tr-v-h b { font-size: 17px; }
.tr-v-h span { font-size: 12px; color: var(--encre-3); }
.tr-v-nom { font-size: 13px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-v-wx { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--encre-2); }
.tr-cat-mini { font-size: 12px; color: var(--encre); }
.tr-v-muet { color: var(--encre-3); }

/* Appel et avertissement */
.tr-cta {
  grid-column: 1 / -1; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #14307A 0%, var(--nuit) 55%, #0B1530 100%);
}
.tr-cta h2 { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.tr-cta p { color: rgba(255, 255, 255, .75); margin-top: 6px; max-width: 34em; }
.tr-avert {
  grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--encre-2); padding: 4px 4px 0;
}
.tr-avert svg { flex-shrink: 0; margin-top: 2px; color: var(--ambre); }
.tr-avert strong { color: var(--encre); }

/* ── Écrans moyens et téléphone ── */
@media (max-width: 960px) {
  .tr-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-l2 { grid-column: 1 / -1; }
  .tr-tuiles { grid-template-columns: repeat(3, 1fr); }
  .tr-voisins ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tr-hero { min-height: 0; padding: 28px 0 24px; }
  .tr-hero-in { padding: 0 16px; }
  .tr-tete { margin: 16px 0 18px; align-items: center; }
  .tr-wx { width: 72px; height: 72px; }
  .tr-temp { font-size: 44px; }
  .tr-tuiles { grid-template-columns: repeat(2, 1fr); }
  .tr-tuiles .tr-tuile:first-child { grid-column: 1 / -1; }
  .tr-tuile-v { font-size: 20px; }
  .tr-actions .tr-btn, .tr-actions .tr-btn-verre { flex: 1 1 100%; justify-content: center; }
  .tr-grille { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 0; gap: 12px; }
  .tr-carte { padding: 18px 16px 16px; }
  .tr-quatre { grid-template-columns: 1fr 1fr; }
  .tr-voisins ul { grid-template-columns: minmax(0, 1fr); }
  .tr-cta { padding: 24px 20px; }
  .tr-cta .tr-btn { width: 100%; justify-content: center; }
}

/* ── Thème sombre : le fond de la charte, bleu nuit, jamais noir ── */
@media (prefers-color-scheme: dark) {
  .page-terrain {
    --encre: #EEF2FF; --encre-2: #B9C3DC; --encre-3: #8792B0;
    --action: #60A5FA;
    --carte-bg: rgba(16, 32, 74, .62); --carte-bord: rgba(255, 255, 255, .08);
    --carte-ombre: none; --tuile: rgba(255, 255, 255, .05); --filet: rgba(255, 255, 255, .09);
  }
  body.page-terrain { background: radial-gradient(ellipse 90% 520px at 50% 600px, rgba(37, 99, 235, .18), transparent 70%), #0B1530; }
  .page-terrain .nav { background: rgba(11, 21, 48, .72); }
  .page-terrain footer { background: rgba(255, 255, 255, .02); }
  .tr-btn { background: #2563EB; }
  .is-actif .tr-rose-piste { fill: #60A5FA; }
  .tr-rose-axe { stroke: #0B1530; }
  .tr-arc-astre { stroke: #0B1530; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-pouls { animation: none; }
  .tr-fleche, .tr-btn, .tr-voisins a, .tr-freq { transition: none; }
}

/* Pistes sous la rose (carte « Pistes et vent ») */
.tr-rose-bloc + .tr-pistes { margin-top: 18px; }

/* La pastille « En direct » coule comme du texte : sur téléphone, l'âge
   passait dans une seconde colonne. */
.tr-direct { display: inline-block; line-height: 1.45; }
.tr-direct .tr-pouls { display: inline-block; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 640px) { .tr-direct { border-radius: 16px; font-size: 12px; } }

/* Seuils d'une piste : QFU et distances déclarées par la VAC */
.tr-seuil { display: block; margin-top: 2px; font-size: 13px; color: var(--encre-2); }
.tr-seuil b { color: var(--encre); font-weight: 600; margin-right: 2px; }

/* ── Fil d'Ariane des pages terrain (sur le ciel) ── */
.tr-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 2px rgba(11, 21, 48, .3); }
.tr-ariane a { color: #fff; text-decoration: none; font-weight: 500; }
.tr-ariane a:hover { text-decoration: underline; }

/* ═══ /terrains/ — tous les terrains, par région et département ═══ */
.ts-hero { padding-bottom: 24px; }
.ts-hero h1 { max-width: 18em; }
.ts-cherche {
  display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 24px;
  padding: 0 16px; height: 52px; border-radius: 999px;
  background: var(--carte-bg); border: 1px solid var(--carte-bord); box-shadow: var(--carte-ombre);
  color: var(--encre-3);
}
.ts-cherche input { flex: 1; border: 0; outline: 0; background: none; font: 500 16px var(--font); color: var(--encre); min-width: 0; }
.ts-cherche:focus-within { border-color: var(--action); }
.ts-regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ts-regions a {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; text-decoration: none;
  color: var(--encre-2); background: var(--tuile); border: 1px solid var(--filet);
}
.ts-regions a:hover { color: var(--encre); border-color: var(--action); }
.ts-main { max-width: 1080px; padding-top: 8px; }
.ts-region { padding: 24px 0 8px; scroll-margin-top: 80px; }
.ts-region h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--encre); }
.ts-region h2 small { font-size: 14px; font-weight: 500; color: var(--encre-3); margin-left: 8px; }
.ts-dep h3 { margin: 18px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-3); }
.ts-liste { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ts-liste a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px; border-radius: 20px; text-decoration: none; color: var(--encre);
  background: var(--carte-bg); border: 1px solid var(--carte-bord); box-shadow: var(--carte-ombre);
  transition: transform .15s;
}
.ts-liste a:hover { transform: translateY(-2px); }
.ts-liste .tr-v-h b { font-size: 17px; }
.ts-vide { padding: 32px 0; color: var(--encre-2); }
.page-terrains .tr-avert { margin-top: 32px; }
@media (max-width: 960px) { .ts-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ts-liste { grid-template-columns: minmax(0, 1fr); }
  .ts-main { padding: 0 16px; }
  .ts-region h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ts-liste a { transition: none; } }
.ts-hero .wrap { max-width: 1080px; }
