/* Les dos, feuille blanche à l'encre nuit : la route des balades, tous les prix, venir. */
.dos__titre { font: 400 clamp(2rem, 4.4vw, 4.6rem)/.95 var(--rozha); }

/* ——— Dos des balades : carte dessinée et pas-à-pas ——— */
.dos-balade { grid-template-rows: auto 1fr; padding-top: 0; }
.dos-balade__carte { grid-column: 1 / -1; position: sticky; top: 0; z-index: 2; height: 40svh; margin: 0 calc(-1 * var(--marge)); background: var(--chaise); border-bottom: 3px solid var(--nuit); }
.rmap { display: block; width: 100%; height: 100%; }
.dos-balade__echelle { position: absolute; left: var(--marge); bottom: 12px; height: 8px; border: 2px solid var(--nuit); border-top: 0;
  font-size: 13px; font-weight: 600; line-height: 1; padding-top: 0; color: var(--nuit); }
.dos-balade__echelle span { position: absolute; left: 0; bottom: 10px; white-space: nowrap; }
.dos-balade__texte { grid-column: 1 / -1; padding: 20px 0 calc(var(--barre) + 24px); }
.dos-balade__route { margin: 8px 0 14px; font-weight: 600; }
.pas { counter-reset: none; border-top: 2px solid var(--nuit); }
.pas li { display: grid; grid-template-columns: 4.4em 1fr; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgb(10 42 82 / .25); font-size: 16px; }
.pas b { font: 400 19px/1 var(--rozha); white-space: nowrap; }
.dos-balade__voir { margin: 14px 0 18px; font-size: 16px; max-width: 46ch; }
.dos__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dos__resa { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border: 0; border-radius: 2px;
  background: var(--nuit); color: var(--soleil); font: 400 20px/1 var(--rozha); }
.dos__resa:hover { background: var(--chaise); }

/* Carte : terre jaune, mer bleu chaise, route rouge gainée de blanc. */
.m-sea { fill: var(--chaise); }
.m-land { fill: var(--soleil); }
.m-river { fill: none; stroke: var(--chaise); stroke-width: calc(var(--u) * 2.5px); opacity: .6; stroke-linejoin: round; }
.m-runway { fill: none; stroke: var(--blanc); stroke-width: calc(var(--u) * 2px); opacity: .9; }
.m-a8 { fill: none; stroke: var(--nuit); stroke-width: calc(var(--u) * 1.8px); stroke-dasharray: calc(var(--u) * 7px) calc(var(--u) * 5px); opacity: .7; }
.m-alt { fill: none; stroke: var(--nuit); stroke-width: calc(var(--u) * 2.5px); stroke-dasharray: .011 .011; stroke-linejoin: round; opacity: 0; }
[data-focus="stpaul"] .m-alt { opacity: .8; }
.m-route__casing, .m-route__line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.m-route__casing { stroke: var(--blanc); stroke-width: calc(var(--u) * 9px); }
.m-route__line { stroke: var(--tomate); stroke-width: calc(var(--u) * 4px); stroke-dasharray: 1; }
.m-route:not(.is-on) { display: none; }
.m-lab { font: 600 calc(var(--u) * 14px)/1 var(--proza); fill: var(--nuit); paint-order: stroke; stroke: var(--soleil); stroke-width: calc(var(--u) * 4px); stroke-linejoin: round; }
.m-lab--dest { font: 400 calc(var(--u) * 20px)/1 var(--rozha); }
.m-lab--sea { fill: var(--blanc); stroke: var(--chaise); }
.m-lab--a8 { font-weight: 600; }
.m-lab--aff { font: 400 calc(var(--u) * 24px)/1 var(--rozha); fill: var(--blanc); stroke: none; opacity: .75; }
.m-dot { fill: none; stroke: var(--nuit); stroke-width: calc(var(--u) * 7px); stroke-linecap: round; }
.m-dot--dest { stroke-width: calc(var(--u) * 12px); }
.m-near { opacity: 0; } .is-close .m-near { opacity: 1; } .is-close .m-lab--aff { opacity: 0; }
.rmap:not([data-focus="all"]) .m-lab--dest[data-k] { display: none; }
.rmap[data-focus="villefranche"] .m-lab--dest[data-k="villefranche"], .rmap[data-focus="eze"] .m-lab--dest[data-k="eze"], .rmap[data-focus="stpaul"] .m-lab--dest[data-k="stpaul"] { display: inline; }
.m-agency__ring, .m-cursor__ring, .m-step__ring { fill: none; stroke-linecap: round; stroke: var(--blanc); }
.m-agency__ring { stroke-width: calc(var(--u) * 20px); }
.m-agency { fill: none; stroke-linecap: round; stroke: var(--tomate); stroke-width: calc(var(--u) * 12px); }
.m-step__ring { stroke: var(--nuit); stroke-width: calc(var(--u) * 11px); }
.m-step { fill: none; stroke-linecap: round; stroke: var(--blanc); stroke-width: calc(var(--u) * 6px); }
@media (max-width: 1023px) {
  .rmap:not([data-focus="all"]) .m-lab--a8, .rmap:not([data-focus="all"]) .m-nice, .rmap:not([data-focus="all"]) .m-lab--aff { display: none; }
  .m-lab { font-size: calc(var(--u) * 12px); } .m-lab--dest { font-size: calc(var(--u) * 16px); } .m-lab--aff { font-size: calc(var(--u) * 16px); }
}

@media (min-width: 1024px) {
  .dos-balade { grid-template-rows: 1fr; padding-top: 104px; padding-bottom: 112px; }
  .dos-balade__carte { grid-column: 1 / 8; grid-row: 1; position: relative; height: auto; margin: -104px 0 -112px calc(-1 * var(--marge)); border: 0; border-right: 3px solid var(--nuit); }
  .dos-balade__echelle { bottom: 44px; left: auto; right: 28px; }
  .dos-balade__echelle span { left: auto; right: 0; }
  .dos-balade__texte { grid-column: 9 / -1; grid-row: 1; align-self: center; padding: 0; }
  .pas li { font-size: 17px; padding: 10px 0; }
}

/* ——— Dos de l'affiche 5 : tous les prix ——— */
.dos-prix { grid-template-rows: auto auto auto auto auto; align-content: start; padding-bottom: calc(var(--barre) + 24px); }
.dos-prix .dos__titre { grid-column: 1 / -1; margin: 4px 0 8px; }
.saisons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 28px; }
.tableau-cadre { grid-column: 1 / -1; margin-top: 8px; }
.tableau { width: 100%; border-collapse: collapse; font-variant-numeric: proportional-nums; }
.tableau th, .tableau td { padding: 9px 0 9px 8px; text-align: right; border-bottom: 1px solid rgb(10 42 82 / .3); }
.tableau thead th { vertical-align: bottom; font: 400 16px/1.1 var(--rozha); border-bottom: 3px solid var(--nuit); }
.tableau thead small { display: none; }
.tableau tbody th { text-align: left; font-weight: 600; font-size: 15px; padding-left: 0; }
.tableau tbody th small { display: block; font-weight: 400; color: var(--second); font-size: 13px; }
.tableau td { font: 400 20px/1 var(--rozha); white-space: nowrap; }
.dos-prix__lignes { grid-column: 1 / -1; margin: 16px 0; font-size: 15px; }
.dos-prix__lignes li { padding: 6px 0 6px 18px; position: relative; }
.dos-prix__lignes li::before { content: ""; position: absolute; left: 0; top: .95em; width: 8px; height: 2px; background: currentColor; }
.dos-prix .retourner { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 1024px) {
  .dos-prix { grid-template-rows: auto auto 1fr auto; padding-top: 104px; padding-bottom: 112px; row-gap: 12px; }
  .dos-prix .dos__titre { grid-column: 1 / 8; }
  .saisons { grid-column: 1 / 8; grid-row: 2; }
  .tableau-cadre { grid-column: 1 / 9; grid-row: 3; align-self: start; margin-top: 12px; }
  .tableau thead th { font-size: clamp(20px, 1.8vw, 30px); }
  .tableau thead small { display: block; margin-top: 6px; font: 400 14px/1.3 var(--proza); color: var(--second); }
  .tableau th, .tableau td { padding: clamp(8px, 1.4vh, 16px) 0 clamp(8px, 1.4vh, 16px) 16px; }
  .tableau td { font-size: clamp(22px, 2vw, 34px); }
  .tableau tbody th { font-size: 17px; }
  .dos-prix__lignes { grid-column: 10 / -1; grid-row: 3; align-self: start; margin: 12px 0 0; font-size: 16px; }
  .dos-prix .retourner { grid-column: 10 / -1; grid-row: 4; }
}

/* ——— Dos de l'affiche 6 : venir (le côté image de la carte postale) ——— */
.dos-venir { grid-template-rows: auto auto; align-content: start; padding-top: 0; padding-bottom: calc(var(--barre) + 24px); }
.dos-venir__photo { grid-column: 1 / -1; margin: 0 calc(-1 * var(--marge)); height: 30svh; }
.dos-venir__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.dos-venir__texte { grid-column: 1 / -1; padding-top: 18px; display: flex; flex-direction: column; }
.dos-venir__fin { display: contents; }
.dos-venir .dos__titre { order: 1; } .dos-venir .plan { order: 2; } .dos-venir__lignes { order: 3; } .dos-venir .retourner { order: 4; align-self: flex-start; }
.dos-venir .dos__titre { font-size: clamp(1.7rem, 3vw, 3rem); max-width: 18ch; }
.plan { display: block; width: 100%; aspect-ratio: 1; margin: 14px 0; background: var(--soleil); }
.dos-venir__lignes { font-size: 16px; margin-bottom: 18px; }
.dos-venir__lignes li { padding: 7px 0; border-bottom: 1px solid rgb(10 42 82 / .25); }
.p-hill { fill: #e0a810; opacity: .7; }
.p-sea { fill: var(--chaise); }
.p-pier { fill: none; stroke: var(--soleil); stroke-width: 2.4; }
.p-square { fill: var(--blanc); opacity: .6; }
.p-st { fill: none; stroke: var(--blanc); stroke-linecap: round; stroke-linejoin: round; }
.p-st--ped { stroke-width: 1.1; opacity: .6; } .p-st--minor { stroke-width: 1.8; opacity: .85; } .p-st--mid { stroke-width: 3.2; } .p-st--major { stroke-width: 5.2; }
.p-tram { fill: none; stroke: var(--nuit); stroke-width: 2.8; stroke-linejoin: round; }
.p-stop { fill: var(--blanc); stroke: var(--nuit); stroke-width: 3; }
.p-ring { fill: none; stroke: var(--tomate); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.p-agency__ring { fill: var(--blanc); } .p-agency { fill: var(--tomate); }
.p-scale { fill: none; stroke: var(--blanc); stroke-width: 2; }
.p-dirmark { fill: var(--nuit); } .p-dirmark--sea { fill: var(--blanc); }
.p-lab { font: 600 11px/1 var(--proza); fill: var(--nuit); paint-order: stroke; stroke: var(--soleil); stroke-width: 3.2px; stroke-linejoin: round; }
.p-lab--place { font: 400 13px/1 var(--rozha); }
.p-lab--sea { fill: var(--blanc); stroke: var(--chaise); }
.p-lab--agency { font: 400 15px/1 var(--rozha); fill: var(--tomate); stroke: var(--blanc); stroke-width: 4px; }
.p-lab__street { font: 600 11px/1 var(--proza); fill: var(--nuit); }
.p-lab--ring { fill: var(--tomate); }
.p-lab__sub { font-weight: 400; }
@media (min-width: 761px) { .plan { aspect-ratio: 640 / 520; } }
.plan.is-tight .p-far { display: none; }
.plan.is-tight .p-lab { font-size: 13px; } .plan.is-tight .p-lab--place { font-size: 15px; } .plan.is-tight .p-lab--agency { font-size: 14px; }
.plan.is-tight .p-lab--dir, .plan.is-tight .p-dirmark { display: none; }
.plan.is-wide .p-far, .plan.is-wide .p-lab--dir, .plan.is-wide .p-dirmark, .plan.is-wide .p-lab--aff, .plan.is-wide .p-lab--scale, .plan.is-wide .p-scale { display: none; }
@media (min-width: 1024px) {
  .dos-venir { grid-template-rows: 1fr; padding-top: 104px; padding-bottom: 112px; }
  .dos-venir__photo { grid-column: 1 / 5; grid-row: 1; height: auto; margin: -104px 0 -112px calc(-1 * var(--marge)); }
  .dos-venir__texte { display: contents; }
  .dos-venir .plan { grid-column: 5 / 10; grid-row: 1; width: calc(100% + var(--gout)); min-width: 0; height: calc(100% + 216px); aspect-ratio: auto; margin: -104px 0 -112px calc(-1 * var(--gout)); }
  .dos-venir__fin { display: block; grid-column: 10 / -1; grid-row: 1; align-self: center; }
  .dos-venir .dos__titre { font-size: clamp(1.6rem, 2.2vw, 2.8rem); margin-bottom: 18px; }
  .dos-venir__lignes { margin: 0 0 20px; }
}
