/* à la page — website stylesheet.
   1. fonts  2. design tokens  3. brand kit  4. site layout */

/* ==========================================================================
   1. Fonts — hosted locally (SIL Open Font License 1.1, see /assets/fonts)
   ========================================================================== */
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/league-spartan-latin-wght-normal.woff2") format('woff2'); 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: 'Libre Franklin'; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/libre-franklin-latin-wght-normal.woff2") format('woff2'); 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: 'Libre Franklin'; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/libre-franklin-latin-wght-italic.woff2") format('woff2'); 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: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-baskerville-latin-400-normal.woff2") format('woff2'); 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: 'Libre Baskerville'; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/libre-baskerville-latin-400-italic.woff2") format('woff2'); 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: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/libre-baskerville-latin-700-normal.woff2") format('woff2'); 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: 'Libre Baskerville'; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/libre-baskerville-latin-700-italic.woff2") format('woff2'); 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; }

/* ==========================================================================
   2. Design tokens (from the design system)
   ========================================================================== */
/* à la page — tokens for the website mockups. Revision 2.
   Values generated from the design system's project/tokens.json (theme "Jour"),
   plus the supporting navies, the responsive dot field, the navigation style
   and the candidate button variants. Load BEFORE alp-bundle.css. */

:root {
  /* ---------- palette ---------- */
  --palette-main-blue:    #024AAD;
  --palette-deep-blue:    #02295F;
  --palette-green:        #127336;
  --palette-green-tint:   #EBF6EE;
  --palette-purple:       #7A2974;
  --palette-dark-red:     #7B0828;
  --palette-amber:        #FFCF24;
  --palette-amber-deep:   #E8B400;
  --palette-bright-red:   #FF0000;
  --palette-platinum:     #ECF3FD;
  --palette-snow:         #F8FAFC;
  --palette-white:        #FFFFFF;
  --palette-onyx:         #0F0E0E;
  --palette-slate:        #4A5A73;
  --palette-hairline:     #C9D6EA;
  --palette-rule:         #A6A6A6;
  --palette-rule-on-blue: #D9D9D9;

  /* supporting blues for dark areas — never black */
  --navy:        #031C40;
  --navy-deep:   #02142C;

  /* ---------- grounds ---------- */
  --paper:            var(--palette-snow);
  --paper-raised:     var(--palette-white);
  --paper-tint:       var(--palette-platinum);
  --paper-green-tint: var(--palette-green-tint);
  --paper-brand:      var(--palette-main-blue);
  --paper-green:      var(--palette-green);
  --paper-purple:     var(--palette-purple);
  --paper-red:        var(--palette-dark-red);

  /* ---------- ink ---------- */
  --ink:             var(--palette-onyx);
  --ink-muted:       var(--palette-slate);
  --ink-brand:       var(--palette-main-blue);
  --ink-green:       var(--palette-green);
  --on-brand:        var(--palette-white);
  --on-brand-muted:  #D6E2F2;

  /* ---------- lines ---------- */
  --hairline:    var(--palette-hairline);
  --rule:        var(--palette-rule);
  --line-brand:  var(--palette-main-blue);
  --bullet:      var(--palette-main-blue);

  /* ---------- action ---------- */
  --action:             var(--palette-main-blue);
  --action-hover:       var(--palette-deep-blue);
  --on-action:          var(--palette-white);
  --action-inverse:     var(--palette-white);
  --on-action-inverse:  var(--palette-main-blue);

  /* ---------- le code des fiches ---------- */
  --cat-open:         var(--palette-main-blue);
  --cat-open-fill:    var(--palette-main-blue);
  --cat-open-soft:    var(--palette-platinum);
  --cat-develop:      var(--palette-purple);
  --cat-develop-fill: var(--palette-purple);
  --cat-develop-soft: #F6ECF5;
  --cat-nuance:       var(--palette-dark-red);
  --cat-nuance-fill:  var(--palette-dark-red);
  --cat-nuance-soft:  #FAEBEF;
  --cat-grammar:      var(--palette-green);
  --cat-grammar-fill: var(--palette-green);
  --cat-grammar-soft: var(--palette-green-tint);
  --highlight:        var(--palette-amber);
  --on-highlight:     var(--palette-onyx);
  --highlight-soft:   #FFF7D1;
  --correction:       var(--palette-bright-red);

  /* ---------- type ---------- */
  --font-display: "League Spartan", "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-sans:    "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Libre Baskerville", Baskerville, Georgia, serif;

  /* ---------- spacing (4px base) ---------- */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px;  --space-12: 48px;
  --space-16: 64px; --space-24: 96px;

  /* tightened section rhythm */
  --section-y: clamp(44px, 4.6vw, 72px);

  /* ---------- radius: square, like the logo's pages ---------- */
  --radius-none: 0;
  --radius-xs: 2px;
  --radius-round: 9999px;

  /* ---------- control sizes ---------- */
  --control-sm: 42px;
  --control-md: 50px;
  --control-lg: 58px;
  --bullet-size: 6px;
  --measure: 66ch;

  /* ---------- strokes ---------- */
  --stroke-hairline: 1px;
  --stroke-ui: 1.5px;
  --stroke-mono: 2px;
  --stroke-display: 4px;

  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #024AAD;

  /* ---------- le pointillé: responsive dot field ---------- */
  --dot-ink: #D3D8DE;
  --dot-size: clamp(1.1px, .115vw, 1.9px);
  --dot-gap: clamp(12px, 1.3vw, 20px);
}

/* ---------- type styles (sizes nudged up one step) ---------- */
.t-display-xl { font-family: var(--font-display); font-size: 150px; line-height: .86; font-weight: 800; letter-spacing: -.05em; }
.t-display    { font-family: var(--font-display); font-size: 96px;  line-height: .9;  font-weight: 800; letter-spacing: -.045em; }
.t-title      { font-family: var(--font-display); font-size: 56px;  line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.t-heading    { font-family: var(--font-display); font-size: 32px;  line-height: 1.08; font-weight: 700; letter-spacing: -.022em; }
.t-subheading { font-family: var(--font-display); font-size: 20px;  line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
.t-label      { font-family: var(--font-display); font-size: 12px;  line-height: 1.3; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.t-lead       { font-family: var(--font-sans); font-size: 21px; line-height: 1.52; font-weight: 400; }
.t-body       { font-family: var(--font-sans); font-size: 17px; line-height: 1.62; font-weight: 400; }
.t-body-small { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; font-weight: 400; }
.t-caption    { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.45; font-weight: 500; letter-spacing: .01em; }
.t-serif-lead { font-family: var(--font-serif); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.62; font-weight: 400; }

/* the italic companion word, optically matched to the Spartan beside it */
.alp-em.is-matched { font-size: .84em; }

/* ---------- navigation: always one line, like the footer motto; no markers ---------- */
.alp-nav { display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; min-width: 0; gap: clamp(13px, 1.55vw, 26px); }
.alp-nav-link {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(12.5px, 1.12vw, 15.5px); letter-spacing: .005em;
  color: var(--ink); text-decoration: none; padding-block: 4px;
  transition: color .18s ease;
}
.alp-nav-link::before, .alp-nav-link::after { content: none; }
.alp-nav-link:hover { color: var(--ink-brand); }
.alp-nav-link.is-current { color: var(--ink-brand); font-weight: 700; }
.alp-nav-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- candidate button variants (A–D on the specimen board) ---------- */
/* A — amber primary */
.alp-btn.is-amber { background: var(--highlight); color: var(--on-highlight); box-shadow: none; }
.alp-btn.is-amber:hover { background: var(--palette-amber-deep); }
.alp-btn.is-amber:active { background: var(--palette-amber-deep); }
.alp-btn.is-amber > .ic { border-left-color: rgba(15, 14, 14, .32); }

/* B — white box, amber arrow cell */
.alp-btn.has-amber-ic > .ic { background: var(--highlight); color: var(--on-highlight); border-left: 0; }

/* C — large underlined text button, on light and on colour fields */
.alp-btn.is-text.is-big > .tx { font-size: 19px; text-decoration-thickness: 2.5px; }
.alp-btn.is-text.is-on-field { color: var(--on-brand); }

/* D — navy primary */
.alp-btn.is-navy { background: var(--navy); color: var(--on-brand); box-shadow: none; }
.alp-btn.is-navy:hover { background: var(--navy-deep); }
.alp-btn.is-navy > .ic { border-left-color: rgba(255, 255, 255, .34); }

/* full width on phones */
.alp-btn.is-block { display: flex; width: 100%; }
.alp-btn.is-block > .tx { flex: 1; }

/* ---------- le pointillé — a dot layer that fades away behind the text ---------- */
.alp-dotfield { position: relative; isolation: isolate; }
.alp-dotfield::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot-ink) var(--dot-size), transparent calc(var(--dot-size) + .45px));
  background-size: var(--dot-gap) var(--dot-gap);
  -webkit-mask-image: radial-gradient(ellipse 64% 54% at 50% 48%,
      rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.14) 44%,
      rgba(0,0,0,.42) 62%, rgba(0,0,0,.75) 82%, #000 100%);
  mask-image: radial-gradient(ellipse 64% 54% at 50% 48%,
      rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.14) 44%,
      rgba(0,0,0,.42) 62%, rgba(0,0,0,.75) 82%, #000 100%);
}
/* a top-to-bottom fade instead, for the footer */
.alp-dotfield.is-vertical::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,0) 62%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,0) 62%);
}

/* ---------- supporting dark fields (no black anywhere) ---------- */
.alp-field-navy      { background: var(--navy);      color: var(--on-brand); }
.alp-field-navy-deep { background: var(--navy-deep); color: var(--on-brand); }
[class*="alp-field-navy"] .alp-muted { color: var(--on-brand-muted); }
[class*="alp-field-navy"] .alp-list > li::before { background: var(--on-brand); }
[class*="alp-field-navy"] .alp-btn.is-text { color: var(--on-brand); }
[class*="alp-field-navy"] .alp-em { color: inherit; }

/* ---------- shared page basics ---------- */
.alp-page { background: var(--paper); color: var(--ink); margin: 0; }
.alp-shell { width: 100%; max-width: 1232px; margin: 0 auto; padding-inline: clamp(24px, 5vw, 88px); box-sizing: border-box; }
.alp-skip { position: absolute; left: -9999px; }
.alp-skip:focus { left: var(--space-6); top: var(--space-6); z-index: 9; background: var(--paper-raised); color: var(--ink-brand); padding: 10px 16px; }

/* ==========================================================================
   3. Brand kit components (from the design system)
   ========================================================================== */
/* à la page — brand kit. Load after tokens.css; every colour, size and stroke is a token. */

/* the arrow, drawn as a mask so it renders in every typeface and takes the text colour */
:root { --alp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1 6h19M15 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

:root {
  --alp-logo-full: url("../images/logo-full.png");
  --alp-logo-reversed: url("../images/logo-reversed.png");
  --alp-logo-short: url("../images/logo-short.png");
  --alp-logo-short-reversed: url("../images/logo-short-reversed.png");
}

/* ---------- le logo: your own files, embedded here so they show in every preview ---------- */
.alp-logo { display: inline-block; aspect-ratio: 4200 / 1538; height: 48px; background: var(--alp-logo-full) center / contain no-repeat; }
.alp-logo.is-reversed { background-image: var(--alp-logo-reversed); }
/* the short logo: the à alone, its page transparent, so it takes the ground it sits on */
.alp-logo.is-short { aspect-ratio: 3644 / 3844; background-image: var(--alp-logo-short); }
.alp-logo.is-short.is-reversed { background-image: var(--alp-logo-short-reversed); }

/* ---------- grounds ---------- */
.alp-paper        { background: var(--paper);            color: var(--ink); }
.alp-paper-raised { background: var(--paper-raised);     color: var(--ink); }
.alp-paper-tint   { background: var(--paper-tint);       color: var(--ink); }
.alp-paper-mint   { background: var(--paper-green-tint); color: var(--ink); }
.alp-field-blue   { background: var(--paper-brand);  color: var(--on-brand); }
.alp-field-green  { background: var(--paper-green);  color: var(--on-brand); }
.alp-field-purple { background: var(--paper-purple); color: var(--on-brand); }
.alp-field-red    { background: var(--paper-red);    color: var(--on-brand); }

/* ---------- type helpers (pair with the token style classes) ---------- */
.alp-caps  { text-transform: uppercase; }
.alp-muted { color: var(--ink-muted); }
.alp-brand { color: var(--ink-brand); }
.alp-green { color: var(--ink-green); }
.alp-measure { max-width: var(--measure); }
[class*="alp-field-"] .alp-muted { color: var(--on-brand-muted); }
/* the italic word — Libre Baskerville italic set inside a League Spartan line, as in « l'impératif » */
.alp-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.alp-em.is-green { color: var(--ink-green); }
.alp-em.is-blue  { color: var(--ink-brand); }
[class*="alp-field-"] .alp-em { color: inherit; }

/* ---------- lists: simple round bullets ---------- */
.alp-list { list-style: none; margin: 0; padding: 0; }
.alp-list > li { position: relative; padding-left: 1.25em; }
.alp-list > li + li { margin-top: 0.5em; }
.alp-list > li::before {
  content: ""; position: absolute; left: 0.1em; top: calc(0.75lh - var(--bullet-size) - 0.08em);
  width: var(--bullet-size); height: var(--bullet-size); border-radius: var(--radius-round); background: var(--bullet);
}
.alp-list.is-open > li::before    { background: var(--cat-open); }
.alp-list.is-develop > li::before { background: var(--cat-develop); }
.alp-list.is-nuance > li::before  { background: var(--cat-nuance); }
.alp-list.is-grammar > li::before { background: var(--cat-grammar); }
[class*="alp-field-"] .alp-list > li::before { background: var(--on-brand); }
.alp-list.is-mono > li::before { background: currentColor; }

/* ---------- le module — square fields from the logo's pages ---------- */
.alp-module { position: relative; aspect-ratio: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-6); }
.alp-module.is-blue   { background: var(--paper-brand);  color: var(--on-brand); }
.alp-module.is-green  { background: var(--paper-green);  color: var(--on-brand); }
.alp-module.is-purple { background: var(--paper-purple); color: var(--on-brand); }
.alp-module.is-red    { background: var(--paper-red);    color: var(--on-brand); }
.alp-module.is-amber  { background: var(--highlight);    color: var(--on-highlight); }
.alp-module.is-paper  { background: var(--paper-raised); color: var(--ink); box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline); }

/* ---------- le cadre — the logo's monoline stroke as frame and rule ---------- */
.alp-frame { border: var(--stroke-display) solid var(--line-brand); }
.alp-frame.is-thin { border-width: var(--stroke-mono); }
[class*="alp-field-"] .alp-frame { border-color: var(--on-brand); }
.alp-rule { height: var(--stroke-display); background: var(--line-brand); border: 0; margin: 0; }
[class*="alp-field-"] .alp-rule { background: var(--on-brand); }
.alp-hairline { border: 0; height: var(--stroke-hairline); background: var(--hairline); margin: 0; }
.alp-ruled { --rule-gap: 32px; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rule-gap) - 1px), var(--rule) calc(var(--rule-gap) - 1px) var(--rule-gap)); }

/* ---------- la plaque — the full-colour logo on a white plate, for colour fields ---------- */
.alp-plate { display: inline-flex; align-items: center; justify-content: center; background: var(--paper-raised); padding: 0.9em 1.1em; }
.alp-plate .alp-logo { display: block; height: 3em; width: auto; }

/* ---------- la bande — the colour band of a teaching sheet ---------- */
.alp-band { display: flex; flex-direction: column; justify-content: space-between; align-items: center; background: var(--cat-open-fill); color: var(--on-brand); }
.alp-band.is-develop { background: var(--cat-develop-fill); }
.alp-band.is-nuance  { background: var(--cat-nuance-fill); }
.alp-band.is-grammar { background: var(--cat-grammar-fill); }
.alp-vertical { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---------- ponctuation ---------- */
.alp-guillemet { font-family: var(--font-serif); font-style: normal; line-height: 0.6; color: var(--ink-brand); }
.alp-guillemet.is-on-field { color: var(--on-brand); }
[class*="alp-field-"] .alp-guillemet { color: var(--on-brand); }
.alp-highlight { color: var(--on-highlight); background: var(--highlight); padding: 0 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.alp-wrong { text-decoration: line-through; text-decoration-color: var(--correction); text-decoration-thickness: 0.11em; }
.alp-folio { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: 0.08em; color: var(--ink-brand); font-variant-numeric: tabular-nums; }
[class*="alp-field-"] .alp-folio { color: var(--on-brand-muted); }

/* ---------- buttons — one component for the website, documents and the learning space ---------- */
.alp-btn {
  --h: var(--control-md); --pad: 22px; --fs: 16px;
  display: inline-flex; align-items: stretch; height: var(--h); box-sizing: border-box;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs); line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--action); color: var(--on-action); border: 0; border-radius: var(--radius-none);
  box-shadow: inset 0 0 0 var(--stroke-ui) var(--action); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.alp-btn > .tx { display: flex; align-items: center; padding: 0.06em var(--pad) 0; }
/* the arrow sits in its own square cell, divided by a hairline: the logo's page module */
.alp-btn > .ic { display: flex; align-items: center; justify-content: center; width: var(--h); border-left: var(--stroke-hairline) solid color-mix(in srgb, currentColor 35%, transparent); }
.alp-btn > .ic::before { content: ""; width: 20px; height: 11px; background: currentColor; -webkit-mask: var(--alp-arrow) center / contain no-repeat; mask: var(--alp-arrow) center / contain no-repeat; transition: transform .2s ease; }
.alp-btn:hover { background: color-mix(in srgb, var(--action) 65%, var(--action-hover)); box-shadow: inset 0 0 0 var(--stroke-ui) color-mix(in srgb, var(--action) 65%, var(--action-hover)); }
.alp-btn:active { background: var(--action-hover); box-shadow: inset 0 0 0 var(--stroke-ui) var(--action-hover); }
.alp-btn:hover > .ic::before { transform: translateX(3px); }
.alp-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.alp-btn.is-sm { --h: var(--control-sm); --pad: 16px; --fs: 14px; }
.alp-btn.is-lg { --h: var(--control-lg); --pad: 28px; --fs: 17px; }
/* secondary: outlined */
.alp-btn.is-secondary { background: transparent; color: var(--ink-brand); box-shadow: inset 0 0 0 var(--stroke-ui) var(--line-brand); }
.alp-btn.is-secondary:hover { background: var(--paper-tint); }
/* on a colour field: white button, and an outlined white button */
.alp-btn.is-inverse { background: var(--action-inverse); color: var(--on-action-inverse); box-shadow: none; }
.alp-btn.is-inverse:hover { background: var(--paper-tint); }
.alp-btn.is-outline-inverse { background: transparent; color: var(--on-brand); box-shadow: inset 0 0 0 var(--stroke-ui) var(--on-brand); }
.alp-btn.is-outline-inverse:hover { background: color-mix(in srgb, var(--on-brand) 12%, transparent); }
/* text button: an underlined label and the arrow, no box */
.alp-btn.is-text { background: transparent; box-shadow: none; color: var(--ink-brand); height: auto; }
.alp-btn.is-text > .tx { padding: 0 0 0.3em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.38em; }
.alp-btn.is-text > .ic { width: auto; border: 0; padding-left: 10px; }
[class*="alp-field-"] .alp-btn.is-text { color: var(--on-brand); }
.alp-btn[aria-disabled="true"] { background: var(--paper-tint); color: var(--ink-muted); box-shadow: inset 0 0 0 var(--stroke-ui) var(--hairline); cursor: not-allowed; }
.alp-btn[aria-disabled="true"] > .ic::before { transform: none; }

/* ---------- the arrow in running text: « Tu parles → Parle ! » ---------- */
.alp-to { display: inline-block; width: 1.1em; height: 0.6em; margin: 0 0.35em; vertical-align: 0.05em; background: currentColor; -webkit-mask: var(--alp-arrow) center / contain no-repeat; mask: var(--alp-arrow) center / contain no-repeat; }
.alp-to.is-green { color: var(--ink-green); }
.alp-to.is-blue  { color: var(--ink-brand); }

/* ---------- other controls ---------- */
.alp-link { color: var(--ink-brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.24em; }
.alp-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.alp-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; box-sizing: border-box;
  font-family: var(--font-display); font-weight: 600; font-size: 11px; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-none); background: var(--action); color: var(--on-action);
}
.alp-tag.is-open    { background: var(--cat-open-fill);    color: var(--on-brand); }
.alp-tag.is-develop { background: var(--cat-develop-fill); color: var(--on-brand); }
.alp-tag.is-nuance  { background: var(--cat-nuance-fill);  color: var(--on-brand); }
.alp-tag.is-grammar { background: var(--cat-grammar-fill); color: var(--on-brand); }
.alp-tag.is-highlight { background: var(--highlight); color: var(--on-highlight); }
.alp-tag.is-outline { background: transparent; color: var(--ink-brand); box-shadow: inset 0 0 0 var(--stroke-ui) var(--line-brand); }
.alp-field {
  height: var(--control-md); box-sizing: border-box;
  font-family: var(--font-sans); font-size: 16px; line-height: 1.4; color: var(--ink);
  background: var(--paper-raised); border: var(--stroke-ui) solid var(--ink-muted); border-radius: var(--radius-xs); padding: 0 14px;
}
.alp-field:focus-visible { outline: none; border-color: var(--line-brand); box-shadow: var(--focus-ring); }
.alp-card { background: var(--paper-raised); box-shadow: inset 0 0 0 var(--stroke-hairline) var(--hairline); color: var(--ink); }

/* ==========================================================================
   4. Site layout — header, footer, sections and pages.
      Built from the mockups; one stylesheet, no inline styles (strict CSP).
   ========================================================================== */

:root { --shell-pad: clamp(22px, 5vw, 88px); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--ink-brand); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 2px solid var(--line-brand); outline-offset: 3px; }
[class*="alp-field-"] :focus-visible { outline-color: var(--on-brand); }

.alp-page { display: flex; flex-direction: column; min-height: 100vh; }
.alp-page > main { flex: 1; }
.alp-shell { padding-inline: var(--shell-pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.plain { list-style: none; padding: 0; }
.line { display: block; }
.line + .line { margin-top: .5em; }
.gap { display: block; height: 8px; }

/* yellow hover shared by the main calls to action */
.alp-btn.is-cta:hover, .alp-btn.is-cta:active { background: var(--highlight); color: var(--navy-deep); box-shadow: inset 0 0 0 var(--stroke-ui) var(--highlight); }
.alp-tag.is-highlight { color: var(--navy-deep); font-weight: 700; letter-spacing: .12em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--paper-raised); box-shadow: inset 0 -1px 0 0 var(--hairline); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-block: 18px; }
.site-header__logo { flex: none; display: block; line-height: 0; }
.site-header__logo img { height: 46px; width: auto; }
.site-nav { margin-left: auto; }
.alp-nav-link[aria-current="page"] { color: var(--ink-brand); font-weight: 700; }
.lang { display: flex; align-items: stretch; height: 32px; flex: none; box-shadow: inset 0 0 0 1.5px var(--line-brand); }
.lang > * { display: flex; align-items: center; padding: 0 10px; text-decoration: none; }
.lang [aria-current] { background: var(--paper-brand); color: var(--on-brand); }
.lang a { color: var(--ink-brand); }
.lang a:hover { background: var(--paper-tint); }
.site-header__cta { flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0; background: transparent; border: 1.5px solid var(--line-brand); border-radius: 0; cursor: pointer; }
.nav-toggle span[aria-hidden] { display: block; width: 20px; height: 2px; background: var(--ink-brand); }

@media (max-width: 1020px) {
  .site-header__bar { gap: 10px; padding-block: 13px 0; }
  .site-header__logo { order: 1; }
  .site-header__logo img { height: 38px; }
  .lang { order: 2; margin-left: auto; height: 44px; }
  .lang > * { padding: 0 13px; }
  .site-nav { order: 4; flex: 0 0 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--hairline); }
  .site-nav .alp-nav-link { font-size: 16px; padding-block: 13px; border-bottom: 1px solid var(--hairline); }
  .site-nav .alp-nav-link:last-child { border-bottom: 0; }
  .site-header__cta { order: 5; width: calc(100% + 2 * var(--shell-pad)); margin: 3px calc(-1 * var(--shell-pad)) 0; height: 46px; }
  .site-header__cta > .tx { padding-left: var(--shell-pad); }
}
/* the menu only folds away when scripts run; without them it stays open */
@media (max-width: 1020px) and (scripting: enabled) {
  .nav-toggle { display: flex; order: 3; }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
}

/* ---------- sections ---------- */
.section > .alp-shell { padding-block: var(--section-y); }
.section__title { font-size: clamp(34px, 3.9vw, 56px); margin-bottom: clamp(26px, 2.6vw, 36px); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.top-rule { height: 2px; background: var(--line-brand); }
@media (max-width: 980px) { .card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
@media (max-width: 700px) {
  body { font-size: 16px; }
  .t-body { font-size: 16px; }
  .t-lead { font-size: 18px; }
  .t-heading { font-size: 26px; }
}

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; justify-content: space-evenly; gap: 28px; min-height: min(818px, 86vh); padding-block: clamp(40px, 5.6vw, 84px); }
.hero__title { font-size: clamp(40px, min(13.7vw, 6.4vw + 29px), 128px); color: var(--highlight); overflow-wrap: break-word; }
.hero__title > .line:first-child { color: var(--on-brand); }
.hero__title .alp-em { display: block; margin-top: .22em; font-size: .76em; text-align: end; color: var(--highlight); }
.hero__title .alp-em span { color: var(--on-brand); }
.hero__lead { font-size: clamp(18px, 1.1vw + 13.7px, 24px); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 700px) {
  .hero__inner { min-height: 0; justify-content: flex-start; }
  .hero__actions { flex-direction: column; gap: 11px; }
  .hero__actions .alp-btn { display: flex; width: 100%; --h: var(--control-md); --fs: 16px; }
}

/* ---------- home: the meaning of the name ---------- */
.meaning { background: var(--paper-tint); }
.meaning__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px clamp(32px, 4vw, 64px); padding-block: var(--section-y); }
.meaning__logo { flex: 0 1 auto; height: clamp(72px, 9vw, 128px); width: auto; }
.meaning__text { flex: 1 1 440px; min-width: 0; font-size: clamp(17px, 1.2vw, 18px); color: var(--ink); }

/* ---------- programme cards (home) ---------- */
.prog-card { display: flex; flex-direction: column; padding: clamp(26px, 2.4vw, 34px) clamp(22px, 2.1vw, 30px); transition: transform .25s ease; }
.prog-card:hover { transform: translateY(-4px); }
.prog-card__rule { width: 56px; height: 4px; background: var(--on-brand); margin: 18px 0 20px; }
.prog-card > p { margin-bottom: 22px; }
.prog-card__foot { margin-top: auto; padding-top: 26px; }
.prog-card__foot .t-label { margin-bottom: 10px; color: var(--on-brand-muted); }
.prog-card__foot .tags { margin-bottom: 24px; }

/* ---------- call-to-action band ---------- */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; padding-block: var(--section-y); }
.cta-band__text { flex: 1 1 470px; min-width: 0; }
.cta-band__text h2 { font-size: clamp(26px, 2.4vw, 34px); }
.cta-band__text p { margin-top: 14px; text-wrap: pretty; }
@media (max-width: 700px) { .cta-band .alp-btn { display: flex; width: 100%; } }

/* ---------- who we are ---------- */
.page-hero > .alp-shell { padding-block: clamp(42px, 6vw, 96px); }
.page-hero__title { font-size: clamp(46px, 6.4vw, 92px); color: var(--on-brand); }
.page-hero__title .alp-em { font-size: .85em; color: var(--highlight); }
.page-hero__lead { margin-top: 24px; font-size: clamp(19px, 1.7vw, 24px); color: var(--on-brand); text-wrap: pretty; }
.page-about .section__title .alp-em { color: var(--ink-green); }
.value-card { background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--hairline); border-top: 4px solid var(--palette-green); padding: clamp(26px, 2.4vw, 32px) clamp(22px, 2vw, 28px); }
.value-card h3 { margin-bottom: 16px; color: var(--ink-green); }
.founder { background: var(--paper-tint); }
.founder__inner { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 4vw, 72px); padding-block: var(--section-y); }
.founder__id { flex: 0 1 320px; min-width: 0; }
.founder__id h2 { font-size: clamp(34px, 3.2vw, 48px); margin-bottom: 24px; }
.founder__id .t-body-small { margin: 4px 0 20px; }
.founder__bio { flex: 1 1 480px; min-width: 0; font-size: clamp(17px, 1.2vw, 18px); color: var(--ink); }

/* ---------- programmes page ---------- */
.prog-panels { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px); }
.prog-panel { display: flex; flex-wrap: wrap; gap: clamp(24px, 3.4vw, 64px); padding: clamp(26px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px); scroll-margin-top: 16px; }
.prog-left, .prog-right { flex: 1 1 400px; min-width: 0; }
.prog-right { display: flex; flex-direction: column; gap: 26px; }
.prog-panel__title { font-size: clamp(30px, 2.8vw, 42px); }
.prog-panel__rule { width: 56px; height: 4px; background: var(--highlight); margin: 18px 0 20px; }
.prog-right .t-label { margin-bottom: 12px; color: var(--on-brand-muted); }
.prog-right .alp-list, .prog-panel__note { font-size: 15px; line-height: 1.4; }
.prog-right .alp-list > li { padding-block: 2px; }
.prog-right .alp-list > li + li { margin-top: 4px; }
@media (min-width: 1100px) { .prog-right.is-offset { padding-top: 40px; } }

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); }
.contact__form { flex: 1 1 560px; min-width: 0; background: var(--paper-raised); border-top: 4px solid var(--palette-dark-red); box-shadow: inset 0 0 0 1px var(--hairline); padding: clamp(26px, 3vw, 44px) clamp(22px, 3vw, 44px); scroll-margin-top: 16px; }
.contact__form h1 { font-size: clamp(34px, 3.2vw, 48px); margin-bottom: 6px; }
.contact__form > p { margin-bottom: 30px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 620px) { .fgrid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.wide { grid-column: 1 / -1; }
.flab { display: block; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.flab .req { letter-spacing: .04em; text-transform: none; font-weight: 500; }
.f { width: 100%; height: 50px; padding: 0 14px; font-family: var(--font-sans); font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--paper-raised); border: 1.5px solid var(--ink-muted); border-radius: 2px; }
textarea.f { height: auto; padding: 12px 14px; resize: vertical; }
.f:focus { outline: none; border-color: var(--line-brand); box-shadow: var(--focus-ring); }
.f::placeholder { color: var(--ink-muted); opacity: 1; }
.hp { position: absolute; left: -9999px; }
.form-note { color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.form-actions { margin-top: 6px; }
.form-actions .alp-btn { border: 0; }
.contact__next { flex: 1 1 320px; min-width: 0; align-self: stretch; padding: clamp(26px, 3vw, 40px) clamp(22px, 3vw, 40px); }
.contact__next h2 { margin-bottom: 20px; }
.contact__next .t-label { margin-bottom: 6px; color: var(--on-brand-muted); }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact__next hr { margin: 28px 0; background: rgba(255, 255, 255, .3); }
.contact__next .plain { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.contact__next a { color: var(--on-brand); text-decoration: underline; text-underline-offset: .24em; }

/* ---------- legal and plain text pages ---------- */
.legal { max-width: calc(78ch + 2 * var(--shell-pad)); }
.legal h1 { font-size: clamp(34px, 3.6vw, 52px); padding-top: 22px; border-top: 4px solid var(--palette-purple); }
.legal__meta { margin-top: 12px; color: var(--ink-muted); font-size: 14px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -.01em; margin-top: 44px; }
.legal h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 26px; }
.legal p, .legal ul, .legal ol, .legal table, .legal dl { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal dl { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 20px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.legal .table-wrap { overflow-x: auto; margin-top: 14px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; margin-top: 0; font-size: 15px; line-height: 1.45; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--hairline); }
.legal th { background: var(--paper-tint); font-family: var(--font-display); font-weight: 600; }
.legal address { font-style: normal; }
.legal .box { margin-top: 14px; padding: 18px 20px; background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--hairline); }
mark.todo { background: var(--highlight-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--palette-amber-deep); padding: 0 .25em; }
@media (max-width: 620px) { .legal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal dd { margin-bottom: 10px; } }

.notice { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.notice h1 { font-size: clamp(38px, 4.4vw, 64px); }
.notice__links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-raised); color: var(--ink); }
.site-footer__main { padding-block: clamp(38px, 3.8vw, 58px); }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.site-footer__brand img { height: clamp(52px, 4.4vw, 64px); width: auto; }
.site-footer__motto { margin-left: auto; font-family: var(--font-serif); font-style: italic; font-size: clamp(15px, 1.6vw, 25px); line-height: 1.2; color: var(--ink-brand); }
.site-footer hr { margin: clamp(26px, 2.4vw, 34px) 0; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 40px; }
.site-footer__cols h2 { margin-bottom: 16px; color: var(--ink-muted); }
.site-footer__cols ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: clamp(15px, 1.15vw, 16.5px); line-height: 1.45; }
.foot-link { color: var(--ink); text-decoration: none; }
.foot-link:hover { color: var(--ink-brand); text-decoration: underline; text-underline-offset: .24em; }
.site-footer__online { margin-top: 18px; color: var(--ink-brand); }
.site-footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-footer__social .t-label { margin-right: 10px; color: var(--ink-muted); }
.soc { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-brand); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line-brand); transition: background-color .18s ease, color .18s ease; }
.soc:hover { background: var(--paper-brand); color: var(--on-brand); }
.site-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding-block: 18px; }
@media (max-width: 900px) {
  .site-footer__motto { margin-left: 0; flex-basis: 100%; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .soc { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .prog-card:hover { transform: none; }
}
@media print {
  .site-header__cta, .nav-toggle, .site-footer__social, .alp-skip { display: none; }
  .alp-dotfield::before { display: none; }
}
