/* ==========================================================================
   Alloy Academy — site additions (loaded after alloy-academy.webflow.css)
   Packages, contact, legal pages, header, footer, live chat, FR adjustments
   ========================================================================== */
:root {
  --ink: #14140f;
  --ink-soft: #3d3d35;
  --grey: #55554c;
  --cream: #f6f4ed;
  --paper: #fbfaf6;
  --sand: #efece5;
  --rule: #e2dfd6;
  --gold: #b08d4f;
  --navy: #012b54;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- header */
@media screen and (min-width: 992px) {
  .nav-menu { grid-column-gap: 2px; grid-row-gap: 2px; }
  .nav-link { padding-left: 10px; padding-right: 10px; font-size: 14px; }
  .button-menu { padding-left: 18px; padding-right: 18px; white-space: nowrap; }
  .nav-menu .button-menu + .button-menu { margin-left: 8px; }
}
/* Two-tier header when the links do not fit on one line next to the logo
   (English 992–1199px, French 992–1599px): logo + actions on top, links below. */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  html[lang="en"] .container-9 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 4px; }
  html[lang="en"] .container-9 > .nav-menu { display: contents; }
  html[lang="en"] .container-9 > .brand { order: 1; }
  html[lang="en"] .container-9 .nav-link.lang-switch { order: 2; margin-left: auto; margin-right: 6px; }
  html[lang="en"] .container-9 .button-menu { order: 2; }
  html[lang="en"] .container-9::after { content: ''; order: 3; flex-basis: 100%; height: 0; }
  html[lang="en"] .container-9 .nav-link { margin-left: 0; margin-right: 0; }
  html[lang="en"] .container-9 .nav-link:not(.lang-switch) { order: 4; margin-top: 10px; }
  html[lang="en"] .container-9 .nav-link:not(.lang-switch):first-of-type { padding-left: 0; }
}
@media screen and (min-width: 992px) and (max-width: 1279px) {
  html[lang="fr"] .container-9 { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 4px; }
  html[lang="fr"] .container-9 > .nav-menu { display: contents; }
  html[lang="fr"] .container-9 > .brand { order: 1; }
  html[lang="fr"] .container-9 .nav-link.lang-switch { order: 2; margin-left: auto; margin-right: 6px; }
  html[lang="fr"] .container-9 .button-menu { order: 2; }
  html[lang="fr"] .container-9::after { content: ''; order: 3; flex-basis: 100%; height: 0; }
  html[lang="fr"] .container-9 .nav-link { margin-left: 0; margin-right: 0; }
  html[lang="fr"] .container-9 .nav-link:not(.lang-switch) { order: 4; margin-top: 10px; }
  html[lang="fr"] .container-9 .nav-link:not(.lang-switch):first-of-type { padding-left: 0; }
}
/* French menu on one line from 1280px: progressively tighter spacing */
@media screen and (min-width: 1440px) and (max-width: 1535px) {
  html[lang="fr"] .nav-link { font-size: 13.5px; padding-left: 8px; padding-right: 8px; }
  html[lang="fr"] .button-menu { font-size: 13px; padding-left: 16px; padding-right: 16px; }
}
@media screen and (min-width: 1366px) and (max-width: 1439px) {
  html[lang="fr"] .nav-link { font-size: 13px; padding-left: 7px; padding-right: 7px; }
  html[lang="fr"] .button-menu { font-size: 13px; padding-left: 14px; padding-right: 14px; }
}
@media screen and (min-width: 1280px) and (max-width: 1365px) {
  html[lang="fr"] .nav-link { font-size: 13px; padding-left: 6px; padding-right: 6px; }
  html[lang="fr"] .button-menu { font-size: 12.5px; padding-left: 14px; padding-right: 14px; }
  html[lang="fr"] .nav-menu > .nav-link:first-child { display: none; } /* the logo already links to Accueil */
}
.button-menu.login-button {
  color: var(--cream);
  background-color: transparent;
  border: 1px solid #f6f4ed59;
}
.button-menu.login-button:hover { border-color: var(--cream); }
.lang-switch { font-weight: 600; }
@media screen and (max-width: 991px) {
  .nav-menu .button-menu { margin: 8px 16px; }
}

/* ---------------------------------------------------------------- footer */
@media screen and (min-width: 992px) {
  .div-block-157 { column-gap: 32px; }
  .div-block-157 > div { flex: 1 1 0; min-width: 0; }
}
.footer-support { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.footer-phone { text-decoration: none; display: inline-block; }
.footer-phone:hover { color: var(--gold); }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid #f6f4ed1f;
}
.footer-legal-link { color: #f6f4ed99; font-family: Familjen Grotesk, sans-serif; font-size: 13px; text-decoration: none; }
.footer-legal-link:hover { color: var(--cream); }
.tel-link { text-decoration: none; }

/* first section after a compact hero */
.sections.page-first { padding-top: 32px; }
.contact-hero .div-block-4.oom, .legal-hero .div-block-4.oom { width: max-content; max-width: 100%; height: auto; padding: 8px 16px; }

/* statements that used to be dead buttons */
.is-static { cursor: default; pointer-events: none; }

/* ---------------------------------------------------------------- packages: hero + note */
.content_wrapper.relative.pkg-hero { background-image: url('../images/Section-3.avif'); background-position: 50% 50%; }
.content_wrapper.pkg-hero { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 72px; }
.content_wrapper.contact-hero, .content_wrapper.legal-hero { border-radius: 34px; padding-bottom: 56px; }
.content.packages { width: 60%; grid-row-gap: 8px; }
.content.packages .text-block.grey { max-width: 760px; }
.content.packages .text-block.grey strong { color: var(--cream); font-weight: 600; }
.content.packages .heading { margin: 0; }
.navbar.pkg-note {
  width: 100%; margin-top: 0;
  border-radius: 0 0 30px 30px;
  padding: 30px;
}
.pkg-note .link_wrap { border-left: 3px solid var(--gold); padding: 8px 0 8px 18px; }
.pkg-note .text-block-35 { font-weight: 400; color: var(--ink-soft); font-size: 15.5px; line-height: 24px; }
.pkg-note .text-block-35 strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- packages: cards */
.pkg-section { padding-top: 0; padding-bottom: 24px; }
.package_container { margin-left: auto; margin-right: auto; }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  column-gap: 20px; row-gap: 0;
}
.pkg-card {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
  background: var(--paper); color: var(--ink);
  border-radius: 26px; padding: 30px 30px 30px;
  font-family: Familjen Grotesk, sans-serif;
}
.pkg-card.pkg-dark { background: var(--ink); color: var(--cream); }
.pkg-name { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.pkg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.pkg-dot.pkg-dot-navy { background: var(--navy); }
.pkg-price { margin-top: 26px; font-size: 50px; line-height: 54px; font-weight: 600; letter-spacing: -1.4px; }
.pkg-head { display: flex; flex-direction: column; align-items: flex-start; margin-top: 22px; }
.pkg-h { margin: 0; font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: -.3px; color: inherit; }
.pkg-desc { margin: 14px 0 0; font-size: 15.5px; line-height: 26px; color: var(--grey); }
.pkg-dark .pkg-desc { color: #f6f4edb3; }
.pkg-rule { height: 1px; background: var(--rule); margin: 44px 0 34px; align-self: start; }
.pkg-dark .pkg-rule { background: #f6f4ed24; }
.pkg-label { font-size: 16px; font-weight: 600; margin-bottom: 22px; }
.pkg-box { align-self: start; background: var(--sand); border-radius: 18px; padding: 24px 18px 22px; }
.pkg-dark .pkg-box { background: #24241e; }
.pkg-box-title { font-size: 15.5px; font-weight: 700; line-height: 21px; }
.pkg-box-navy .pkg-box-title { color: var(--navy); }
.pkg-box-item { margin-top: 14px; font-size: 15.5px; line-height: 24px; color: var(--ink-soft); }
.pkg-dark .pkg-box-item { color: #f6f4edcc; }
.pkg-list { list-style: none; margin: 28px 0 0; padding: 0; align-self: start; }
.pkg-label + .pkg-list { margin-top: 0; }
.pkg-list li { position: relative; padding-left: 16px; font-size: 15.5px; line-height: 21px; color: var(--ink-soft); margin-bottom: 12px; }
.pkg-list li:last-child { margin-bottom: 0; }
.pkg-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.pkg-list.pkg-dot-navy li::before { background: var(--navy); }
.pkg-dark .pkg-list li { color: #f6f4edcc; }
.pkg-cta {
  align-self: end; margin-top: 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: 13.5px; font-weight: 600; text-decoration: none; text-align: center;
  transition: opacity .2s ease;
}
.pkg-dark .pkg-cta, .contact-dark .pkg-cta { background: var(--cream); color: var(--ink); }
.pkg-cta:hover { opacity: .86; }
.pkg-cta:focus-visible, .contact-v:focus-visible, .button-menu:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.pkg-courses-intro { max-width: 860px; margin: 32px 0 24px; font-family: Familjen Grotesk, sans-serif; }
.pkg-courses-h { margin: 0; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -1px; color: var(--ink); }
.pkg-courses-intro p { margin: 0; font-size: 16px; line-height: 27px; color: var(--ink-soft); }
.pkg-courses-intro strong { color: var(--ink); }
.pkg-count { align-self: start; justify-self: start; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 600; line-height: 16px; }
.pkg-count-navy { color: var(--navy); }
.pkg-dark .pkg-count { background: #24241e; color: var(--cream); }
.pkg-desc strong { color: var(--ink); font-weight: 600; }
.pkg-dark .pkg-desc strong { color: var(--cream); }
.pkg-lessons { list-style: none; counter-reset: lesson; margin: 0; padding: 0; align-self: start; }
.pkg-lesson { counter-increment: lesson; position: relative; padding-left: 38px; margin-bottom: 20px; }
.pkg-lesson:last-child { margin-bottom: 0; }
.pkg-lesson::before {
  content: counter(lesson); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1;
}
.pkg-lessons.pkg-dot-navy .pkg-lesson::before { background: var(--navy); }
.pkg-lesson-title { font-size: 15.5px; line-height: 22px; font-weight: 700; color: var(--ink); padding-top: 2px; }
.pkg-lesson-desc { margin-top: 3px; font-size: 14.5px; line-height: 23px; color: var(--grey); }
.pkg-dark .pkg-lesson-title { color: var(--cream); }
.pkg-dark .pkg-lesson-desc { color: #f6f4edb3; }
.pkg-dark .pkg-lesson::before { color: var(--ink); }
@media screen and (max-width: 767px) { .pkg-courses-h { font-size: 30px; line-height: 34px; } }
.pkg-sep { padding-top: 24px; padding-bottom: 24px; }
.pkg-sep .div-block-44 { max-width: 720px; }

.pkg-info-section { padding-top: 8px; padding-bottom: 48px; }
.pkg-info {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); column-gap: 40px;
  background: var(--paper); border-radius: 30px; padding: 38px;
  font-family: Familjen Grotesk, sans-serif;
}
.pkg-info-h { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; color: var(--ink); }
.pkg-info-lead { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.pkg-info-body p { margin: 0 0 10px; font-size: 16px; line-height: 26px; color: var(--ink-soft); }
.pkg-info-body p:last-child { margin-bottom: 0; }

@media screen and (max-width: 991px) {
  .content.packages { width: 100%; }
  .pkg-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 20px; }
  .pkg-card { display: flex; flex-direction: column; grid-row: auto; }
  .pkg-rule { align-self: stretch; margin: 28px 0 26px; }
  .pkg-cta { margin-top: 30px; }
  .pkg-info { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding: 28px; }
}
@media screen and (max-width: 479px) {
  .pkg-card { padding: 26px 22px; }
  .pkg-price { font-size: 34px; }
  .navbar.pkg-note { padding: 22px; }
}

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border-radius: 26px; padding: 32px; font-family: Familjen Grotesk, sans-serif;
}
.contact-card.contact-dark { background: var(--ink); color: var(--cream); }
.contact-dark .pkg-desc { color: #f6f4edb3; }
.contact-h { margin: 18px 0 0; font-size: 26px; line-height: 32px; font-weight: 700; color: inherit; }
.contact-rows { margin-top: 24px; border-top: 1px solid var(--rule); }
.contact-dark .contact-rows { border-top-color: #f6f4ed24; }
.contact-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 22px; }
.contact-dark .contact-row { border-bottom-color: #f6f4ed24; }
.contact-k { color: var(--grey); }
.contact-dark .contact-k { color: #f6f4ed99; }
.contact-v { color: inherit; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
a.contact-v:hover, .contact-chat:hover { color: var(--gold); }
div.contact-v { cursor: auto; font-weight: 500; }
.contact-card .pkg-cta { margin-top: auto; align-self: stretch; }
.contact-rows { margin-bottom: 30px; }
@media screen and (max-width: 767px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------------------------------------------------------------- legal */
.legal-card { background: var(--paper); border-radius: 30px; padding: 48px 38px; }
.legal-body { max-width: 780px; margin: 0 auto; font-family: Familjen Grotesk, sans-serif; color: var(--ink-soft); font-size: 15.5px; line-height: 26px; }
.legal-body h2 { margin: 36px 0 12px; font-size: 21px; line-height: 28px; font-weight: 700; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; }
.legal-body li { margin-bottom: 4px; }
.legal-body li::marker { color: var(--gold); }
.legal-body a { color: var(--navy); }
.legal-body strong { color: var(--ink); }
@media screen and (max-width: 479px) { .legal-card { padding: 30px 22px; } }

/* ---------------------------------------------------------------- general layout repairs */
.carddup { min-width: 0; }
/* fixed-height heroes grow when the header is two-tier or the text is longer (FR) */
@media screen and (min-width: 992px) {
  .div-block-3 { height: auto; min-height: 522px; padding-bottom: 96px; }
  .div-block-3.oom, .div-block-3.resources { height: auto; min-height: 480px; padding-bottom: 96px; }
}
.f1 { flex-wrap: wrap; }
.div-block-147 { min-width: 0; }
.heading-16 { overflow-wrap: break-word; hyphens: auto; }

/* ---------------------------------------------------------------- live chat fallback */
.ac-chat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 9998;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--cream); box-shadow: 0 10px 30px -10px #14140f99;
  font: 600 13.5px/1 Familjen Grotesk, sans-serif;
}
.ac-chat-btn svg { width: 18px; height: 18px; }
@media screen and (max-width: 479px) {
  .ac-chat-btn { width: 52px; height: 52px; padding: 0; justify-content: center; right: 16px; bottom: 16px; }
  .ac-chat-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ac-chat-btn svg { width: 22px; height: 22px; }
}
.ac-chat-panel {
  position: fixed; right: 20px; bottom: 80px; z-index: 9999; width: min(340px, calc(100vw - 40px));
  background: var(--paper); color: var(--ink); border-radius: 22px; padding: 22px;
  box-shadow: 0 24px 60px -20px #14140f80; font-family: Familjen Grotesk, sans-serif;
}
.ac-chat-panel[hidden] { display: none; }
.ac-chat-title { font-size: 17px; font-weight: 700; margin: 0 28px 6px 0; }
.ac-chat-text { font-size: 14px; line-height: 21px; color: var(--grey); margin: 0 0 16px; }
.ac-chat-actions { display: flex; flex-direction: column; gap: 8px; }
.ac-chat-actions a { display: flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ac-chat-actions a.primary { background: var(--ink); color: var(--cream); }
.ac-chat-actions a.secondary { border: 1px solid var(--rule); color: var(--ink); flex-direction: column; padding: 8px 14px; line-height: 18px; }
.ac-chat-actions a.secondary small { font-size: 12.5px; font-weight: 500; color: var(--grey); }
.ac-chat-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--sand); cursor: pointer; font-size: 18px; line-height: 30px; color: var(--ink); }
.ac-chat-btn:focus-visible, .ac-chat-close:focus-visible, .ac-chat-actions a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==========================================================================
   French: labels are longer than English
   ========================================================================== */
html[lang="fr"] .text-block-79 { text-transform: none; }
html[lang="fr"] .div-block-4, html[lang="fr"] .div-block-4.oom,
html[lang="fr"] .div-block-4-copy, html[lang="fr"] .div-block-4-copy-copy, html[lang="fr"] .div-block-4-copy-copy-copy {
  width: max-content; max-width: 100%; height: auto; min-height: 34px; padding: 8px 16px;
}
html[lang="fr"] .div-block-4 .text-block-2, html[lang="fr"] .div-block-4-copy .text-block-2,
html[lang="fr"] .div-block-4-copy-copy .text-block-2-copy, html[lang="fr"] .div-block-4-copy-copy-copy .text-block-2-copy,
html[lang="fr"] .div-block-4-copy .text-block-2-copy, html[lang="fr"] .div-block-4-copy-copy .text-block-2 { white-space: nowrap; }
html[lang="fr"] .button-3.oom { width: auto; }
html[lang="fr"] .div-block-16 { flex-wrap: wrap; row-gap: 14px; }
@media screen and (min-width: 992px) {
  .div-block-7-copy.oom { flex-flow: row wrap; align-items: center; column-gap: 22px; row-gap: 14px; }
  .div-block-7-copy.oom .div-block-16 { display: contents; }
  .div-block-7-copy.oom .text-block-19 { white-space: nowrap; }
}
@media screen and (min-width: 1280px) {
  html[lang="fr"] .button-3.oom, html[lang="fr"] .button-7, html[lang="fr"] .button-7-copy, html[lang="fr"] .button-8,
  html[lang="fr"] .text-block-19, html[lang="fr"] .text-block-38, html[lang="fr"] .text-block-49,
  html[lang="fr"] .text-block-92, html[lang="fr"] .number { white-space: nowrap; }
}
@media screen and (max-width: 479px) {
  html[lang="fr"] .div-block-4 .text-block-2, html[lang="fr"] .div-block-4-copy .text-block-2,
  html[lang="fr"] .div-block-4-copy-copy .text-block-2-copy, html[lang="fr"] .div-block-4-copy-copy-copy .text-block-2-copy { white-space: normal; }
}
