/* France: the country page and what its places share. Loaded by a <link> inside <main>, so it arrives and leaves with the
   page when the site swaps pages in place. Scope every rule to this country:
     main[data-country="france"] ...                 anything inside its pages
     body:has(main[data-country="france"]) ...       the pages' colours, the nav, the footer and the player
   One family, under the SIL Open Font Licence and served from this folder: Fira Sans, near the Parisine of the métro's
   signs, and its condensed cut for dates. */
@font-face {
  font-family: "Fira Sans"; src: url("fira-sans-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans"; src: url("fira-sans-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans"; src: url("fira-sans-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans"; src: url("fira-sans-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans"; src: url("fira-sans-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fira Sans Condensed"; src: url("fira-sans-condensed-500-latin-ext.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans Condensed"; src: url("fira-sans-condensed-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fira Sans Condensed"; src: url("fira-sans-condensed-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fira Sans Condensed"; src: url("fira-sans-condensed-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body:has(main[data-country="france"]) {
  --bg: #fff; --surface: #f0f0f0; --ink: #111; --soft: #5c5c5c; --panel: #f0f0f0;
  --paper: #fff; --paper-ink: #111; --film: #111; --mark: #0f2a6b;
  --link: #111; --visited: #111;
  --bleu: #002395; --rouge: #ed2939; --enamel: #14286b; --enamel-ink: #fff;
  --face: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --tight: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --s-small: 16px;
  --s-body: clamp(17px, 16px + 0.25vw, 19px);
  --s-lead: clamp(20px, 17px + 0.7vw, 26px);
  --s-head: clamp(34px, 22px + 3vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --heavy: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 2.6vw, 40px);
  --row-gap: clamp(8px, 1vw, 16px);
  background: var(--bg); color: var(--ink); font-family: var(--face);
}
body:has(main[data-country="france"]) nav, body:has(main[data-country="france"]) #player { background: var(--bg); }
body:has(main[data-country="france"]) ::selection { background: var(--enamel); color: #fff; }
body:has(main[data-country="france"]) :focus-visible { outline-color: var(--enamel); }

main[data-country="france"] { background: var(--bg); color: var(--ink); }
main[data-country="france"] img { display: block; width: 100%; height: auto; }
main[data-country="france"] :is(h1, h2, h3, p, figure) { margin: 0; font-weight: 400; font-style: normal; }
main[data-country="france"] figcaption { color: inherit; }
main[data-country="france"] a { color: inherit; }

/* The tabs. */
main[data-country="france"] > .tabs { padding: 28px 12px 0; }
@media (min-width: 900px) { main[data-country="france"] > .tabs ol { flex-wrap: wrap; overflow: visible; } }
main[data-country="france"] .tabs .bar { background: #cfcfcf; }
main[data-country="france"] .tabs .place { font-style: normal; font-weight: 500; }
main[data-country="france"] .tabs .here > a { background: var(--enamel); color: #fff; }
main[data-country="france"] .tabs .here .n { color: #b9c3e3; }
main[data-country="france"] .tabs .here .bar { background: #4a5a92; }
main[data-country="france"] .tabs .here .bar i { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  main[data-country="france"] .tabs li:not(.here) > a:hover { background: var(--surface); }
}

/* The places of the country. */
main[data-country="france"] .places { display: flex; flex-wrap: wrap; gap: 8px clamp(24px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
main[data-country="france"] .places a, main[data-country="france"] .places .sealed > span { display: inline-block; padding: 6px 0; color: inherit; text-decoration: none; font-size: var(--s-lead); }
main[data-country="france"] .places .place { font-weight: 500; transition: color 200ms var(--ease); }
main[data-country="france"] .places .yr { opacity: 0.7; }
main[data-country="france"] .places .here a { text-decoration: underline 3px currentColor; text-underline-offset: 8px; }
main[data-country="france"] .places a:active .place { opacity: 0.6; }

/* ---- Rows: a row's frames share one height and are never cropped. */
main[data-country="france"] .rows { display: grid; gap: clamp(28px, 3vw, 48px); }
main[data-country="france"] .row { display: flex; gap: var(--row-gap); align-items: flex-start; width: min(100%, calc(80svh * var(--sum))); margin-inline: auto; }
main[data-country="france"] .row.one { width: min(78%, calc(78svh * var(--sum))); }
main[data-country="france"] .shot { flex: var(--r) 1 0; min-width: 0; }
main[data-country="france"] .shot a { display: block; }
main[data-country="france"] .shot img { transition: opacity 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) { main[data-country="france"] .shot a:hover img { opacity: 0.86; } }
main[data-country="france"] .shot a:active img { opacity: 0.7; }
main[data-country="france"] .meta { margin-top: 10px; font-size: var(--s-small); font-variant-numeric: tabular-nums; color: var(--soft); }
main[data-country="france"] .run .rows { padding: clamp(40px, 4vw, 80px) var(--gut) clamp(56px, 6vw, 110px); }
main[data-country="france"] .run.light { background: #fff; color: var(--ink); }
main[data-country="france"] .run.dark { background: #000; color: #fff; }
main[data-country="france"] .run.dark .meta { color: #a9a9a9; }

main[data-country="france"] > .stub { padding: clamp(56px, 6vw, 96px) var(--gut) 0; }
main[data-country="france"] > .credit { padding: 32px var(--gut) 48px; font-size: var(--s-small); color: var(--soft); }
main[data-country="france"] > .credit a { color: inherit; }

@media (max-width: 899px) {
  main[data-country="france"] .run .rows { padding: 24px 12px 72px; }
  main[data-country="france"] .rows > .row { width: auto; margin-inline: 0; }
  main[data-country="france"] .row:not(.keep) { display: block; }
  main[data-country="france"] .row:not(.keep) .shot + .shot { margin-top: 28px; }
  main[data-country="france"] .rows { gap: 28px; }
  main[data-country="france"] .row.keep { gap: 6px; }
  main[data-country="france"] .row.keep .meta { font-size: 14px; }
}
