/* The legal pages: mentions légales, CGV, confidentialité. Same fonts and colours as index.html. */
@font-face { font-family: "League Gothic"; src: url(/fonts/league-gothic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Bitter"; src: url(/fonts/bitter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bleu: #1A3E9E;
  --craie: #F6F8FD;
  --fil: #F0B429;
  --encre: #0E1A47;
  --gris: #4C5677;
  --filet: #D8DCE8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--craie); color: var(--encre); font: 400 1.0625rem/1.65 "Bitter", Georgia, serif; }
a { color: var(--bleu); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--fil); outline-offset: 3px; }

.tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem); background: var(--bleu); }
.marque { display: inline-flex; align-items: center; gap: .3em; color: var(--craie); font: 400 1.9rem/1 "League Gothic", "Arial Narrow", sans-serif; text-decoration: none; }
.marque img { height: 1.3em; width: auto; }

main { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) 4rem; }
h1 { margin: 0 0 .5rem; font: 400 clamp(2.8rem, 8vw, 4.2rem)/.95 "League Gothic", "Arial Narrow", sans-serif; }
h2 { margin: 2.5rem 0 .6rem; font: 400 clamp(1.8rem, 4vw, 2.3rem)/1 "League Gothic", "Arial Narrow", sans-serif; }
h3 { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
p, ul, dl { margin: 0 0 .9rem; }
ul { padding-left: 1.2rem; }
li + li { margin-top: .3rem; }
.version { color: var(--gris); font-size: .95rem; }
.resume { padding: 1rem 1.2rem; border-left: 4px solid var(--fil); background: #fff; }
dl.fiche { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .35rem 1.2rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--filet); }
dl.fiche dt { font-weight: 700; }
dl.fiche dd { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .98rem; background: #fff; }
th, td { padding: .55rem .7rem; border: 1px solid var(--filet); text-align: left; vertical-align: top; }
th { background: #EEF1F8; }

/* A contact detail held reversed in the HTML (public/protege.js): CSS shows it the right way round without JavaScript. */
.inverse { unicode-bidi: bidi-override; direction: rtl; }

/* A value that the owner must give before the page goes live. scripts/check-placeholders.mjs stops a deploy that still has one. */
mark.manque { background: #FFE36E; color: var(--encre); padding: 0 .2em; font-weight: 700; }

.pied { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; max-width: 46rem; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; border-top: 1px solid var(--filet); font-size: .95rem; }

@media (max-width: 560px) {
  dl.fiche { grid-template-columns: 1fr; }
  dl.fiche dd { margin-bottom: .5rem; }
}
