/* The site header, shared by the pack pages and the calendar: the design tokens and fonts it uses, its buttons,
   and the header itself (logo, training menus, phone menu). Loaded before the stylesheet of the page that hosts it. */
@font-face { font-family: "Acumin Pro"; src: url(../pack-3-niveaux/fonts/AcuminPro-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Acumin Pro"; src: url(../pack-3-niveaux/fonts/AcuminPro-Semibold.otf) format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Acumin Pro"; src: url(../pack-3-niveaux/fonts/AcuminPro-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Acumin Pro"; src: url(../pack-3-niveaux/fonts/AcuminPro-Black.otf) format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Acumin Pro Condensed"; src: url(../pack-3-niveaux/fonts/AcuminProCond-Black.otf) format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Acumin Pro Condensed"; src: url(../pack-3-niveaux/fonts/AcuminProCond-Ultra.otf) format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Acumin Pro Condensed"; src: url(../pack-3-niveaux/fonts/AcuminProCond-UltraItalic.otf) format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --al-violet: #722785;
  --al-violet-ink: #4C1A5C;
  --al-violet-deep: #532583;
  --al-cta: #70FFAE;
  --al-cta-ink: #0D1F16;
  --al-blue: #02A7DC;
  --al-gold: #F7C66F;
  --al-border: #E4D7EA;
  --al-soft: #F1E9F3;
  --al-page: #FEFAFF;
  --al-ink: #222222;
  --al-muted: #4A4A4A;
  --al-faint: #6B5E72;
  --al-font: "Acumin Pro", system-ui, sans-serif;
  --al-font-display: "Acumin Pro Condensed", "Acumin Pro", system-ui, sans-serif;
  --al-glow: 0 0 24px rgba(156, 44, 135, .10);
  --al-glow-cta: 0 0 24px rgba(156, 44, 135, .16);
}

/* What the header needs from its host page, scoped with :where() so it adds no specificity and never leaks */
:where(.al-header), :where(.al-header) *, :where(.al-header) *::before, :where(.al-header) *::after { box-sizing: border-box; }
:where(.al-header) { font-family: var(--al-font); line-height: 1.55; color: var(--al-ink); }
:where(.al-header) ul { margin: 0; padding: 0; list-style: none; }
:where(.al-header) img { max-width: 100%; height: auto; display: block; }
:where(.al-header) details > summary { list-style: none; }
:where(.al-header) [hidden] { display: none !important; }
:where(.al-header) a:focus-visible, :where(.al-header) summary:focus-visible { outline: 3px solid var(--al-blue); outline-offset: 2px; border-radius: 4px; }

.al-wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* CTAs: mint (header, checkout, final) and violet (hero), 8px corners, the ND glow */
.al-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--al-font); font-weight: 700; font-size: 16px; padding: 14px 30px; border: 0; border-radius: 8px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.al-cta:hover { transform: translateY(-1px); }
.al-cta:active { transform: translateY(0); }
.al-cta:focus-visible { outline: 3px solid var(--al-blue); outline-offset: 3px; }
.al-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.al-cta--mint { background: var(--al-cta); color: var(--al-cta-ink); box-shadow: var(--al-glow-cta); }
.al-cta--violet { background: var(--al-violet); color: #fff; box-shadow: 0 12px 30px rgba(20, 8, 30, .35); }
.al-cta--lg { font-size: 18px; padding: 17px 34px; }
.al-cta--sm { font-size: 15px; padding: 11px 20px; }
.al-cta--block { width: 100%; font-size: 18px; padding: 17px; box-shadow: 0 0 28px rgba(156, 44, 135, .22); }

/* Header */
.al-header { border-bottom: 1px solid var(--al-soft); background: var(--al-page); position: sticky; top: 0; z-index: 40; }
.al-header__row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.al-logo { height: 30px; width: auto; }
.al-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.al-nav a { display: inline-block; padding: 10px 0; color: var(--al-violet-ink); text-decoration: none; }
.al-nav a:hover { text-decoration: underline; }
/* The site's two training menus (« Formation en ligne », « Formation à Paris »): a panel on hover, focus or tap */
.al-nav__menu { position: relative; }
.al-nav__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--al-violet-ink); cursor: pointer; }
.al-nav__toggle:hover { text-decoration: underline; }
.al-nav__chevron { font-size: 12px; transition: transform .15s ease; }
.al-nav__menu.is-open .al-nav__chevron { transform: rotate(180deg); }
.al-nav__panel { position: absolute; top: 100%; left: 0; z-index: 50; display: none; min-width: 330px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--al-soft); border-radius: 14px; box-shadow: 0 18px 44px rgba(40, 10, 55, .16); }
.al-nav__menu:hover .al-nav__panel, .al-nav__menu:focus-within .al-nav__panel, .al-nav__menu.is-open .al-nav__panel { display: block; }
.al-nav__panel a { display: block; padding: 9px 12px; border-radius: 9px; }
.al-nav__panel a:hover, .al-nav__panel a:focus-visible { background: var(--al-page); text-decoration: none; }
.al-nav__panel strong { display: block; font-weight: 700; color: var(--al-violet-ink); }
.al-nav__panel span { display: block; font-size: 13px; font-weight: 500; color: rgba(40, 10, 55, .68); }
.al-nav__panel a[aria-current="page"] strong { color: var(--al-violet); }
.al-nav__panel li + li { border-top: 1px solid var(--al-soft); }
/* A heading of the menu opens its packs in a flyout to its right, the way the WordPress mega menu does
   (hover, or a click/Enter on the heading); it flips to the left when the window is too narrow. */
.al-nav__group { position: relative; }
.al-nav__group-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; font: inherit; text-align: left; color: var(--al-violet-ink); cursor: pointer; }
.al-nav__group-toggle:hover, .al-nav__group:hover > .al-nav__group-toggle, .al-nav__group.is-open > .al-nav__group-toggle, .al-nav__group-toggle:focus-visible { background: var(--al-page); }
.al-nav__panel .al-nav__group-icon { display: inline-block; font-size: 18px; line-height: 1; }
.al-nav__panel .al-nav__group-text { display: block; flex: 1; font-size: inherit; }
.al-nav__menu .al-nav__group-toggle .al-nav__chevron { display: inline-block; font-size: 20px; line-height: 1; color: var(--al-violet-ink); transform: none; }
.al-nav__sublist { display: none; position: absolute; top: -9px; left: calc(100% + 10px); z-index: 51; min-width: 300px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--al-soft); border-radius: 14px; box-shadow: 0 18px 44px rgba(40, 10, 55, .16); }
.al-nav__sublist::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 12px; }
.al-nav__group--left > .al-nav__sublist { left: auto; right: calc(100% + 10px); }
.al-nav__group--left > .al-nav__sublist::before { right: auto; left: 100%; }
.al-nav__group:hover > .al-nav__sublist, .al-nav__group:focus-within > .al-nav__sublist, .al-nav__group.is-open > .al-nav__sublist { display: block; }
.al-nav__sublist li + li { border-top: 1px solid var(--al-soft); }
@media (max-width: 768px) { .al-nav { display: none; } }

/* Phones: the menu button, right of the call to action, opens the menus under the header (05/11/2026). */
.al-burger { display: none; }
.al-mobile-menu { display: none; }
@media (max-width: 768px) {
  .al-header__row { gap: 10px; }
  .al-header__row > .al-cta { margin-left: auto; }
  .al-burger { display: inline-flex; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--al-border); border-radius: 12px; background: #fff; cursor: pointer; }
  .al-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--al-violet-ink); transition: transform .2s ease, opacity .2s ease; }
  .al-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .al-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .al-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .al-mobile-menu { display: block; max-height: calc(100vh - 73px); max-height: calc(100dvh - 73px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 20px; border-top: 1px solid var(--al-soft); background: var(--al-page); }
  .al-mobile-menu[hidden] { display: none; }
}
@media (max-width: 400px) { .al-logo { height: 24px; } }
.al-mm__section { border-bottom: 1px solid var(--al-soft); }
.al-mm__section > summary, .al-mm__group > summary { list-style: none; cursor: pointer; }
.al-mm__section > summary::-webkit-details-marker, .al-mm__group > summary::-webkit-details-marker { display: none; }
.al-mm__section > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 700; font-size: 17px; color: var(--al-violet-ink); }
.al-mm__section > summary::after, .al-mm__group > summary::after { content: "▾"; flex: none; margin-left: 10px; font-size: 13px; transition: transform .15s ease; }
.al-mm__section[open] > summary::after, .al-mm__group[open] > summary::after { transform: rotate(180deg); }
.al-mm__list { margin: 0 0 10px; padding: 0; list-style: none; }
.al-mm__list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--al-violet-ink); text-decoration: none; }
.al-mm__list a:hover, .al-mm__list a:focus-visible, .al-mm__list a[aria-current="page"] { background: var(--al-soft); }
.al-mm__list strong, .al-mm__text strong { display: block; font-weight: 700; color: var(--al-violet-ink); }
.al-mm__list a > span, .al-mm__text > span { display: block; font-size: 13px; font-weight: 500; color: rgba(40, 10, 55, .68); }
.al-mm__group { margin: 2px 0 8px; }
.al-mm__group > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--al-soft); border-radius: 10px; background: #fff; }
.al-mm__icon { flex: none; font-size: 18px; line-height: 1; }
.al-mm__text { flex: 1; }
.al-mm__group > .al-mm__list { margin: 4px 0 0; padding-left: 14px; }
.al-mm__anchors { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.al-mm__anchors a { display: inline-block; padding: 8px 14px; border: 1px solid var(--al-border); border-radius: 999px; background: #fff; color: var(--al-violet-ink); font-weight: 600; text-decoration: none; }

/* A long call to action (« Recevoir plus d'infos ») stays on one line on phones, next to the logo and the menu button */
@media (max-width: 768px) {
  .al-cta--compact { font-size: 13px; padding: 10px 11px; white-space: nowrap; }
}
