/* The frame of the public pages the server renders beside the website (guide.html, privacy.html; app/site.py writes
   it): the website's palette, type, buttons, navy header and footer, as landing.html draws them (its header there sits
   in the hero; here it is the compact navy bar it becomes once the website scrolls). Light only. Each page adds its
   own content styles; the language pills are langmenu.css's .lang-pill. */
:root {
  --navy: #10053F; --sky: #75C8FF; --sky-card: #F1FAFF; --sky-tile: #BFE6FF; --teal: #12DCC4; --nav-hover: #3A6480;
  --white: #FFFFFF; --black: #000000; --muted: #6B6478; --card-muted: #938DAA; --line: #DEDDE5; --border: #E7E5EC;
  --link: #1F6FB5; --foot-text: #F0EFF3; --copyright: #C3C0CF;
  --ok: #14805A; --ok-bg: #DDF6EC; --warn: #B4461A; --warn-bg: #FFE9DC;
  --sans: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Scrolling stops below the header that stays on top (82 px; 64 px from 1000 px down), so a control the keyboard focuses
   is never under it; a page's sections take a negative scroll-margin-top so a link to one lands as on the website. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1236px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.on-navy :focus-visible { outline-color: var(--white); }

/* buttons: light blue, white on hover, light blue again while pressed */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; min-width: 120px; padding: 0 24px;
  border: 0; border-radius: 14px; background: var(--sky); color: var(--navy); font: 700 16px/20px var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--white); }
.btn:active { background: var(--sky); }
.btn.lg { height: 56px; min-width: 240px; border-radius: 16px; }

/* underlined links (hover: a dark blue line; the page you are on: light blue) */
.uline { position: relative; text-decoration: none; }
.uline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 1px; background: transparent; transition: background-color .15s; }
.uline:hover::after { background: var(--nav-hover); }
.uline[aria-current="page"]::after { background: var(--sky); }

/* section eyebrow: a coloured bar, then its words */
.eyebrow { display: flex; align-items: center; gap: 32px; margin: 0; font-size: 16px; line-height: 20px; font-weight: 600; }
.eyebrow::before { content: ""; flex: none; width: 88px; height: 5px; border-radius: 3px; background: var(--bar, var(--sky)); }

/* header: the website's navy bar */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0; background: var(--navy); color: var(--white); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 50px; }
.logo { flex: none; border-radius: 6px; }
.site-header .logo img { width: 154px; height: 43px; }
.nav { display: flex; align-items: center; gap: 52px; margin-left: 57px; }
.nav a { font: 500 16px/20px var(--sans); color: var(--white); white-space: nowrap; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 61px; min-width: 0; }
.signin { flex: 0 1 auto; }  /* the website's 120 wide; on phones it may shrink, its words cut short (below) */
.signin span { overflow: hidden; text-overflow: ellipsis; }
.lang-menu:empty { display: none; }
.langs { display: flex; flex-wrap: wrap; gap: 4px; }  /* the language links of a browser without scripts */
.langs a { padding: 4px 10px; border-radius: 999px; font-size: 13px; text-decoration: none; color: rgb(255 255 255 / .75); }
.langs a[aria-current] { background: rgb(255 255 255 / .14); color: var(--white); }
.js .langs { display: none; }

/* footer */
.footer { padding: 52px 0 47px; background: var(--navy); color: var(--white); }
.foot-top { display: grid; grid-template-columns: minmax(0, 532fr) minmax(0, 199fr) minmax(0, 184fr) minmax(0, 190fr) minmax(0, 131fr); }
.foot-brand img { width: 242px; height: 68px; }
.foot-brand p { max-width: 260px; margin: 25px 0 0; font-size: 14px; line-height: 18px; color: var(--foot-text); }
.foot-col h3 { margin: 0; padding-top: 2px; font: 700 18px/24px var(--sans); }
.foot-col ul { display: grid; gap: 18px; margin: 14px 0 0; padding: 0 16px 0 0; list-style: none; font-size: 14px; line-height: 18px; }
/* a finger's 36 x 40 on each link (inline: padding takes taps without moving the lines; the underline stays 6 under the
   words) */
.foot-col a { padding: 9px 0; font-size: 14px; line-height: 18px; color: var(--white); overflow-wrap: anywhere; }
.foot-col a.uline::after { bottom: 3px; }
.foot-bottom { display: flex; align-items: center; gap: 16px 37px; margin-top: 87px; }
.rights { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; line-height: 16px; color: var(--copyright); }
.rights svg { flex: none; color: var(--white); }
.foot-end { display: flex; align-items: center; gap: 37px; margin-left: auto; }
.foot-signin { padding: 10px 0; margin: -10px 0; font: 700 16px/20px var(--sans); color: var(--white); }
.foot-signin.uline::after { bottom: 4px; }

@media (max-width: 1180px) {
  .nav { gap: 36px; margin-left: 40px; }
  .bar-end { gap: 24px; }
}
/* tablets and phones: the compact bar (the website's sections stay in the footer) */
@media (max-width: 1000px) {
  html { scroll-padding-top: 72px; }
  .site-header { padding: 7px 0; }
  .site-header .logo img { width: 122px; height: 34px; }
  .nav { display: none; }
  .bar-end { gap: 16px; }
  .foot-top { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { margin-top: 56px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .bar { gap: 12px; }
  .bar-end { gap: 10px; }
  .site-header .signin { min-width: 0; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
  /* the header's pill shows the flag alone (the footer's names the language) */
  .site-header .lang-menu.lang-pill .lang-trigger { min-width: 0; height: 40px; padding: 0 12px 0 10px; border-radius: 12px; }
  .site-header .lang-menu.lang-pill .lang-current { display: none; }
  html:not(.js) .bar-end { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }  /* the links under Sign in */
  html:not(.js) .langs { flex-basis: 100%; justify-content: flex-end; }
  html:not(.js) .site-header { position: static; }  /* that taller header scrolls away instead of covering the text */
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-bottom { flex-direction: column-reverse; align-items: flex-start; margin-top: 44px; }
  .foot-end { margin-left: 0; }
}
/* the smallest phones (360): a smaller logo leaves Sign in its whole words ("Se connecter") */
@media (max-width: 380px) { .site-header .logo img { width: 108px; height: 30px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .uline::after { transition: none; }
}
