/* MRN 2027 : carte 3D et points de passage des parcours, code court [mrn27_parcours course="…"] (functions.php).
 * 1.0.0 - 29.11.2026 - Claude : généré par _Agents IA/Visuels/Parcours 2027/Maquette 25K/scripts/construire_page.py,
 *   ne pas modifier à la main. Relief et orthophoto © swisstopo.
 */
.mrn27-parcours {
  --mrn-nuit:#0B1F35; --mrn-encre:#1B2836; --mrn-gris:#4A5866; --mrn-calcaire:#F2F3F0; --mrn-trait:#D5DAD8; --mrn-action:#DAFF1A;
  --trace:#E3001B; /* rouge balisage, liseré blanc, pour toutes les courses (MF, 28.11.2026) */
  font-family:var(--mrn-police, "Archivo", system-ui, sans-serif); font-size:18px; line-height:1.6;
}
.mrn27-parcours, .mrn27-parcours * { box-sizing:border-box; }
.mrn27-parcours { background:var(--mrn-nuit); color:#fff; padding:96px 0 64px; overflow-x:clip; }
.mrn27-parcours .mrn27-wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
  border:2px solid rgba(255,255,255,.35); border-radius:2px; padding:10px 14px; cursor:pointer; min-height:44px; }
body.mrn27-sans-defil { overflow:hidden; }
  background:rgba(11,31,53,.86); color:#fff; box-shadow:0 1px 4px rgba(0,0,0,.4); }
  background:rgba(11,31,53,.88); color:#fff; pointer-events:none; opacity:0; transition:opacity .25s; z-index:3; }
  background:rgba(11,31,53,.82); color:#fff; padding:5px 8px; border-radius:2px; border-left:3px solid var(--trace); }
  border:3px solid var(--mrn-nuit); box-shadow:0 0 0 6px rgba(218,255,26,.35); pointer-events:none; transform:scale(var(--inv)); }
  padding:4px 8px; border-radius:2px; white-space:nowrap; pointer-events:none; font-variant-numeric:tabular-nums; }
.mrn27-parcours /* tableau */ .mrn27-points { margin:56px 0 0; }
.mrn27-parcours .mrn27-table-scroll { overflow-x:auto; }
.mrn27-parcours .mrn27-points table { width:100%; border-collapse:collapse; font-size:16px; min-width:560px; }
.mrn27-parcours .mrn27-points caption { text-align:left; font-weight:700; font-size:21px; margin-bottom:12px; }
.mrn27-parcours .mrn27-points th, .mrn27-parcours .mrn27-points td { text-align:left; padding:12px 12px; border-bottom:1px solid rgba(255,255,255,.14); vertical-align:top; }
.mrn27-parcours .mrn27-points thead th { font-size:14px; text-transform:uppercase; letter-spacing:.5px; color:#B9C4D0; font-weight:700; }
.mrn27-parcours .mrn27-points tbody th small { display:block; font-weight:400; color:#B9C4D0; font-size:14px; }
.mrn27-parcours .mrn27-num { font-variant-numeric:tabular-nums; white-space:nowrap; }
.mrn27-parcours .mrn27-points tbody tr.is-proche { background:rgba(218,255,26,.10); }
@media (max-width:767px) {
.mrn27-parcours { padding:48px 0; }
.mrn27-parcours .mrn27-wrap { padding:0 16px; }

}

.mrn27-parcours ul, .mrn27-parcours li { list-style:none !important; margin:0 !important; padding:0 !important; }
.mrn27-parcours h2, .mrn27-parcours h3, .mrn27-parcours p { padding:0; }
/* Divi impose sa police de base, celle de ses titres et une couleur sombre aux titres et paragraphes : police Archivo du site et couleurs claires forcées */
.mrn27-parcours, .mrn27-parcours :is(h2, h3, p, li, b, span, small, td, th, caption, button) { font-family:var(--mrn-police, "Archivo", "Helvetica Neue", Arial, sans-serif) !important; }
.mrn27-parcours h2 { font-size:clamp(32px,5vw,56px) !important; line-height:1 !important; }
.mrn27-parcours h3 { font-size:clamp(23px,2.4vw,28px) !important; line-height:1.2 !important; }
/* Divi (.entry-content) : en-têtes de ligne des tableaux en gris #555, bordure claire et marge autour du tableau */
.mrn27-parcours .mrn27-points table { border:0 !important; margin:0 !important; }
.mrn27-parcours .mrn27-points tbody th { color:#fff !important; }
.mrn27-parcours .mrn27-points thead th { color:#B9C4D0 !important; }
.mrn27-parcours .mrn27-points tbody th small { color:#B9C4D0 !important; }
/* sur la fiche, la carte suit directement le titre « Parcours » : marges intérieures réduites */
.mrn27-parcours { padding:32px 0 40px !important; }
@media (max-width:767px) { .mrn27-parcours { padding:16px 0 24px !important; } .mrn27-parcours .mrn27-wrap { padding:0 12px; } }
.mrn27-parcours img { max-width:none; }
/* téléphone : points de passage en lignes empilées, sans défilement latéral (MF, 29.11.2026)
   trois colonnes nettes : km | lieu puis services | altitude seule à droite (MF : textes trop près de l'altitude) */
@media (max-width:600px) {
  .mrn27-parcours .mrn27-table-scroll { overflow:visible !important; }
  .mrn27-parcours .mrn27-points table { min-width:0 !important; font-size:15px !important; }
  .mrn27-parcours .mrn27-points thead { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .mrn27-parcours .mrn27-points tbody tr { display:grid !important; grid-template-columns:3.8em 1fr auto; column-gap:14px; row-gap:4px;
    padding:12px 0 !important; border-bottom:1px solid rgba(255,255,255,.14) !important; }
  .mrn27-parcours .mrn27-points tbody :is(td, th) { display:block !important; padding:0 !important; border:0 !important; }
  .mrn27-parcours .mrn27-points tbody td:first-child { grid-row:1 / span 2; font-weight:700; color:#fff !important; }
  .mrn27-parcours .mrn27-points tbody td:first-child::before { content:"km "; font-weight:400; color:#B9C4D0; }
  .mrn27-parcours .mrn27-points tbody th { grid-column:2; grid-row:1; }
  .mrn27-parcours .mrn27-points tbody td:nth-child(3) { grid-column:3; grid-row:1 / span 2; text-align:right !important; color:#B9C4D0 !important; white-space:nowrap; }
  .mrn27-parcours .mrn27-points tbody td:last-child { grid-column:2; grid-row:2; color:#DDE4EA !important; font-size:14.5px; line-height:1.45; }
}
/* ---------- carte 3D temps réel (iframe .mrn27-3d, dossier uploads/mrn-parcours/<course>/3d/) ---------- */
.mrn27-3d { display:block; width:100%; height:900px; border:0; background:#0B1F35; }
.mrn27-3d.is-plein { position:fixed !important; top:0; left:0; right:0; bottom:0; width:100vw !important; height:100vh !important; height:100dvh !important; z-index:2147483000; }
html.mrn27-3d-plein, html.mrn27-3d-plein body { overflow:hidden !important; }
/* carte agrandie sans plein écran du navigateur (téléphone) : rien de la page par-dessus, ni sommaire collant ni bouton « haut de page » (MF, 01.12.2026) */
html.mrn27-3d-plein body * { visibility:hidden !important; }
html.mrn27-3d-plein iframe.mrn27-3d.is-plein { visibility:visible !important; }
/* section Parcours de la fiche en bloc nuit, de bord à bord (MF, 29.11.2026) : rangées titre, carte et boutons */
.mrn27-editable .et_pb_row:has(#parcours), .mrn27-editable .et_pb_row:has(iframe.mrn27-3d), .mrn27-editable .et_pb_row:has(iframe.mrn27-3d) + .et_pb_row {
  max-width:none !important; width:100% !important; margin-left:0 !important; margin-right:0 !important; margin-bottom:0 !important; background:#0B1F35 !important;
  padding-left:max(16px, calc((100% - 1152px) / 2)) !important; padding-right:max(16px, calc((100% - 1152px) / 2)) !important; }
.mrn27-editable .et_pb_row:has(iframe.mrn27-3d) { padding:0 !important; }
.mrn27-editable .et_pb_row:has(#parcours) { padding-top:96px !important; padding-bottom:48px !important; background:radial-gradient(90% 140% at 50% 0%, #15385c 0%, #0B1F35 62%) !important; }
.mrn27-editable .et_pb_row:has(#parcours) .mrn27-fiche__titre { color:#fff !important; }
.mrn27-editable .et_pb_row:has(#parcours) .mrn27-fiche__intro { color:#C9D3DC !important; }
.mrn27-editable .et_pb_row:has(iframe.mrn27-3d) + .et_pb_row { padding-top:24px !important; padding-bottom:96px !important; margin-bottom:32px !important; }
.mrn27-editable .et_pb_row:has(iframe.mrn27-3d) + .et_pb_row .et_pb_button { color:#fff !important; border-color:rgba(255,255,255,.55) !important; background:transparent !important; }
.mrn27-editable .et_pb_row:has(iframe.mrn27-3d) + .et_pb_row .et_pb_button:hover { background:#DAFF1A !important; border-color:#DAFF1A !important; color:#0B1F35 !important; }
/* respirations harmonisées autour du bloc (81 px entre sections) */
.mrn27-editable .et_pb_row:has(+ .et_pb_row #parcours) { margin-bottom:80px !important; }
.et_pb_section:has(iframe.mrn27-3d) .et_pb_row:has(#barrieres) { margin-bottom:0 !important; }
.et_pb_section:has(iframe.mrn27-3d) > .et_pb_row:last-child { padding-bottom:128px !important; }
@media (max-width:767px) {
  .mrn27-editable .et_pb_row:has(#parcours) { padding-top:64px !important; padding-bottom:32px !important; }
  .mrn27-editable .et_pb_row:has(iframe.mrn27-3d) + .et_pb_row { padding-bottom:64px !important; }
  .mrn27-editable .et_pb_row:has(+ .et_pb_row #parcours) { margin-bottom:56px !important; }
}
