:root {
  color-scheme: light;
  --ink: #1d1714;
  --muted: #65574d;
  --paper: #faf9f7;
  --stone: #f0ede8;
  --dark: #181311;
  --line: #ded7d0;
  --accent: #80675a;
  --sand: #dbc5b3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: .23em; }
button, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #80675a; outline-offset: 4px; }
.hero :focus-visible, .footer-wrap :focus-visible { outline-color: var(--sand); }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.masthead { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .5rem; }
.masthead > a img { width: clamp(8rem, 15vw, 10.3rem); }
.masthead nav, .footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.85rem, 2.4vw, 2rem); }
.masthead nav a, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.masthead nav a { font-size: .875rem; font-weight: 700; color: #2d2622; }
.masthead nav a:hover, .masthead [aria-current="page"] { color: var(--accent); text-decoration: underline; }
.menu-toggle { min-height: 44px; padding-inline: .85rem; border: 1px solid var(--line); background: white; font-size: .875rem; font-weight: 700; }
@media (min-width: 641px) { .menu-toggle { display: none; } }
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .masthead { flex-wrap: wrap; }
  .masthead nav { width: 100%; gap: 0 .95rem; }
  .masthead .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .masthead .menu-toggle[hidden] + nav { display: flex; }
  .masthead .menu-toggle[aria-expanded="true"] + nav { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .masthead .menu-toggle[aria-expanded="true"] + nav a + a { border-top: 1px solid var(--line); }
}
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.3vw, 5rem); line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2.05rem); }
h1 em { font-style: normal; color: var(--sand); }
.eyebrow { margin: 0 0 .6rem; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .065em; }
.hero { background: var(--dark); color: white; }
.hero .eyebrow { color: var(--sand); }
.section { padding-block: clamp(2.65rem, 6vw, 5.5rem); }
.actions, .destinations, .gateway-centres, .gateway-links { display: flex; flex-wrap: wrap; gap: .65rem .8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; max-width: 100%; padding: .75rem 1.25rem;
  border: 1px solid transparent; font-size: .875rem; font-weight: 700;
  line-height: 1.4; text-align: center; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.primary { background: #1d1715; color: white; }
.primary:hover { background: #574438; }
.outline { border-color: #aa998e; background: transparent; }
.outline:hover { background: #eee7df; }
.hero .primary { background: white; color: #241b18; }
.hero .primary:hover { background: #e7dbd0; }
.hero .outline { border-color: #b7a293; color: white; }
.hero .outline:hover { background: #574438; }
.gateway { position: relative; isolation: isolate; }
.gateway-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.gateway-media img, .gateway-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.gateway-media video { visibility: hidden; }
.gateway-media video.has-frame { visibility: visible; }
.gateway-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(24 19 17 / .50), rgb(24 19 17 / .67)); }
.gateway-layout {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: clamp(32rem, 65vh, 43rem); padding-block: clamp(2rem, 5vw, 4rem); text-align: center;
}
.gateway-logo { width: min(100%, 31rem); margin-bottom: 1.25rem; filter: drop-shadow(0 2px 12px #15100eb0); }
.gateway h1 { font-size: clamp(1.65rem, 4vw, 3.65rem); }
.gateway-description { max-width: 57ch; margin: .65rem 0 0; color: #fff5ec; text-wrap: balance; }
.gateway-centres, .gateway-links { justify-content: center; align-items: center; }
.gateway-centres { margin-top: 1.35rem; }
.gateway-links { margin-top: .65rem; }
.gateway-secondary { display: inline-flex; align-items: center; min-height: 44px; }
.gateway-play { background: rgb(24 19 17 / .68); min-height: 44px; padding: .55rem .85rem; }
.gateway-play svg { width: 1rem; height: 1rem; margin-right: .45rem; fill: currentColor; }
.centres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1.35rem; background: var(--line); border: 1px solid var(--line); }
.centre { min-width: 0; padding: clamp(1.3rem, 4vw, 2.65rem); background: var(--stone); }
.centre h3 { font-size: clamp(1.7rem, 3.4vw, 3rem); }
address { font-style: normal; margin: .8rem 0 1.25rem; color: var(--muted); }
.contact-centre address p { margin: 0 0 .65rem; }
.contact-centre address p:last-child { margin-bottom: 0; }
.contact-centre address { overflow-wrap: anywhere; }
.catalogue { background: white; border-block: 1px solid var(--line); }
.intro { margin: .75rem 0 1.4rem; color: var(--muted); }
.filters { display: flex; align-items: end; gap: .8rem 1rem; flex-wrap: wrap; padding: 1rem; background: var(--stone); }
.filters label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 700; }
.filters select { min-height: 44px; max-width: 100%; padding: .35rem .65rem; border: 1px solid #aa998e; background: white; }
.filters p { margin: .35rem 0; color: var(--muted); font-size: .875rem; }
.course { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.course .eyebrow { margin: 0 0 .25rem; }
.course h3, .funding-grid h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.destinations { flex-shrink: 0; }
.destinations .button { min-width: 6.5rem; min-height: 44px; padding: .5rem .9rem; }
@media (min-width: 541px) {
  .destinations { display: grid; grid-template-columns: repeat(2, 6.5rem); }
  .destinations [data-centre="albi"] { grid-column: 1; grid-row: 1; }
  .destinations [data-centre="dunkerque"] { grid-column: 2; grid-row: 1; }
}
.full { margin-top: 1.45rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
summary { min-height: 44px; padding: .8rem 0; font-weight: 700; }
details p { margin: 0 0 1rem; max-width: 75ch; color: var(--muted); }
.funding-intro { padding-block: clamp(3rem, 8vw, 6rem); }
.funding-intro > p:not(.eyebrow) { max-width: 48ch; color: #e5dad3; margin: 1rem 0 1.35rem; }
.funding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.funding-grid article { padding: clamp(1.2rem, 3vw, 2rem); background: white; }
.funding-grid p { margin: .6rem 0 0; color: var(--muted); }
.funding-choice { background: var(--stone); border-top: 1px solid var(--line); }
.funding-choice .centre { background: var(--paper); }
.funding-choice .actions { margin-top: 1rem; }
.legal-content { max-width: 820px; }
.legal-content h1 { font-size: clamp(2rem, 6vw, 3.75rem); }
.legal-content section { margin-top: 2rem; scroll-margin-top: 1rem; }
.legal-content h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.legal-content h3 { font-size: 1.15rem; font-weight: 700; }
.legal-content p a { overflow-wrap: anywhere; }
.footer-wrap { background: var(--dark); color: white; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-block: clamp(1.65rem, 4vw, 3rem) 1rem; }
.footer > img { width: clamp(9rem, 19vw, 13rem); }
.footer nav a { font-size: .875rem; color: #d8ccc2; }
.footer nav a:hover { color: white; text-decoration: underline; }
.footer .footer-legal { flex-basis: 100%; border-top: 1px solid #54483f; padding-top: .6rem; }
.footer-certifications { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.footer-certifications a { display: grid; place-items: center; width: clamp(7.25rem, 14vw, 9rem); height: clamp(3.625rem, 7vw, 4.5rem); grid-template-rows: minmax(0, 1fr); }
.footer-certifications img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 850px) { .funding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .gateway-layout { min-height: 0; padding-block: 2rem; }
  .gateway-logo { margin-bottom: 1rem; }
  .gateway-centres { display: grid; width: min(100%, 19rem); margin-top: 1rem; }
  .gateway-links { gap: 0 .65rem; }
  .centres, .funding-grid { grid-template-columns: 1fr; }
  .course { flex-direction: column; align-items: flex-start; }
  .filters > div, .filters select { width: 100%; }
  .footer { align-items: flex-start; flex-direction: column; }
  .footer .footer-legal { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}
