/* KOE typography — fonts served locally, with their OFL licenses in fonts/. */
@font-face {
  font-family: 'MuseoModerno';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/museo-moderno-400.ttf') format('truetype');
}
@font-face {
  font-family: 'MuseoModerno';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/museo-moderno-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/bebas-neue-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/atkinson-hyperlegible-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/atkinson-hyperlegible-700.ttf') format('truetype');
}

:root {
  --title-font: 'MuseoModerno', Arial, sans-serif;
  --subtitle-font: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body-font: 'Atkinson Hyperlegible', Arial, sans-serif;
  --serif: var(--title-font);
  --sans: var(--body-font);
  --symbol-radius: 20px;
}

body, p, li, label, input, select, textarea, button, nav {
  font-family: var(--body-font);
}
h1, h2, h1 em, h2 em {
  font-family: var(--title-font);
  font-style: normal;
  letter-spacing: -.045em;
  line-height: 1.15;
}
.hero h1 {
  font-family: var(--title-font);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.hero h1 em {font-style: normal;}
h3, .offer h3, .method-list h3, .result-title, legend,
.eyebrow, .hero .eyebrow, .section-heading .eyebrow,
.diagnostic-intro .eyebrow, .about-copy .eyebrow,
.brief-intro .eyebrow, .faq .eyebrow, .sheet-label {
  font-family: var(--subtitle-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: .035em;
}
.eyebrow, .hero .eyebrow, .section-heading .eyebrow,
.diagnostic-intro .eyebrow, .about-copy .eyebrow,
.brief-intro .eyebrow, .faq .eyebrow {
  font-size: 15px;
  line-height: 1.35;
}
.offer h3 {font-size: 36px; line-height: 1.15;}
.method-list h3 {font-size: 27px; line-height: 1.25;}
.result-title {font-size: 46px; line-height: 1.15;}
legend {font-size: 32px; line-height: 1.2;}
.sheet-label {font-size: 10px;}
.wordmark, .footer-wordmark, .about-brand > span {
  font-family: Arial, Helvetica, sans-serif;
}

/* A visible 20px radius on arrow actions and symbol badges. */
.button, .main-nav .nav-cta, .voice-stamp, .journey-highlight,
.offer-symbol, .action-sheet strong > span, .icon,
.voice-rays, .voice-rays i, .expertise-strip i,
.diagnostic-aside > span, .brief-smallprint > span {
  border-radius: var(--symbol-radius);
}
.offer-symbol {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--soft-red);
  font: 28px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
.action-sheet strong > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: color-mix(in srgb,var(--ink) 8%,transparent);
  font: 24px/1 var(--body-font);
  letter-spacing: 0;
}
.voice-stamp svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diagnostic-aside > span, .brief-smallprint > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid currentColor;
  font: 36px/1 var(--body-font);
}

@media (max-width: 1150px) {
  .hero h1 {font-size: clamp(49px, 5.5vw, 62px);}
  .offer h3 {font-size: 32px;}
}
@media (min-width: 701px) and (max-width: 900px) {
  .hero h1 {font-size: clamp(39px, 5.5vw, 49px);}
  .offer h3 {font-size: 28px;}
  .offer-symbol {width: 34px; height: 34px; font-size: 25px;}
  .sheet-label {font-size: 8px;}
}
@media (max-width: 700px) {
  .hero h1 {font-size: clamp(34px, 10vw, 58px); letter-spacing: -.045em;}
  h2, .about-copy h2, .brief-intro h2, .faq h2 {letter-spacing: -.045em;}
  .offer h3 {font-size: 36px;}
  .method-list h3 {font-size: 25px;}
  .result-title {font-size: 43px;}
  legend {font-size: 30px;}
  .eyebrow, .hero .eyebrow, .section-heading .eyebrow,
  .diagnostic-intro .eyebrow, .about-copy .eyebrow,
  .brief-intro .eyebrow, .faq .eyebrow {font-size: 14px;}
  .sheet-label {font-size: 9px;}
  .action-sheet strong > span {width: 30px; height: 30px; font-size: 21px;}
}
@media (max-width: 370px) {
  .hero h1 {font-size: 34px;}
  legend {font-size: 28px;}
}

/* Original KOE logo; the SVG viewport removes only transparent margins. */
.site-header .wordmark {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0;
  letter-spacing: 0;
  line-height: 1;
}
.header-logo {
  display: block;
  width: 128px;
  height: auto;
  overflow: hidden;
}
@media (max-width: 700px) {
  .header-logo {width: 110px;}
}

/* Annotated brand refinements. */
.main-nav .nav-cta {
  border-color: var(--red);
  color: var(--red);
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-width: 182px;
}
.main-nav .nav-cta:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--soft-red);
}
.footer-wordmark {
  display: inline-block;
  font-size: 0;
  line-height: 1;
}
.footer-logo {
  display: block;
  width: 225px;
  height: auto;
  overflow: hidden;
}
.about-logo {
  display: block;
  width: 78%;
  max-width: 300px;
  height: auto;
  overflow: hidden;
}
.hero-actions .button {
  max-width: 100%;
  text-align: left;
}
.footer-bottom {
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 16px;
}
@media (max-width: 700px) {
  .footer-logo {width: 195px;}
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    font-size: 11px;
  }
  .footer-bottom > span {grid-column: 1;}
  .footer-bottom > a:last-child, .footer-privacy {justify-self: start;}
  .footer-privacy {font-size: 11px;}
}

/* Brand palette: cream surfaces and shared semantic colors throughout. */
:root {
  --koe-beige: var(--cream);
  --main-background: var(--cream);
}
body,
.site-header,
.site-header .main-nav,
#main {
  background-color: var(--main-background);
}
#brief-form > button[type="submit"] {
  color: var(--cream);
}
.hero-actions .button-red,
.action-sheet strong,
.action-sheet .sheet-label,
.site-footer {
  color: var(--koe-beige);
}
#faq-title em,
#about-title em,
#method-title em,
#offers-title em,
#brief-title em,
.method-number {
  color: var(--red);
}
.brief-smallprint > span {
  border: 0;
}

/* Short, descriptive footer navigation. */
.footer-top p {font-size: 13px;}
.footer-bottom, .footer-privacy {font-size: 11px;}
@media (max-width: 700px) {
  .footer-bottom {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px;}
  .footer-bottom > span {grid-column: 1 / -1;}
}

/* Fixed navigation with a reserved slot: shrinking it never moves the page. */
:root {--header-anchor-offset: 116px;}
:root.has-scrolled {--header-anchor-offset: 90px;}
html {scroll-padding-top: var(--header-anchor-offset);}
.header-slot {height: 98px;}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 98px;
  margin: 0;
  z-index: 60;
  transition: height .22s ease, box-shadow .22s ease;
}
.header-inner {
  width: min(calc(100% - 112px), var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.site-header.is-scrolled {
  height: 72px;
  box-shadow: 0 5px 20px color-mix(in srgb,var(--ink) 5%,transparent);
}
.header-logo {transition: width .22s ease;}
.site-header.is-scrolled .header-logo {width: 112px;}
.main-nav > a[aria-current="location"]:not(.nav-cta) {color: var(--red);}
.main-nav > a[aria-current="location"]:not(.nav-cta)::after {width: 100%;}
.main-nav .nav-cta[aria-current="location"] {background: var(--soft-red);}
@media (max-width: 1150px) {
  .header-inner {width: calc(100% - 72px);}
}
@media (max-width: 900px) {
  :root {--header-anchor-offset: 103px;}
  :root.has-scrolled {--header-anchor-offset: 86px;}
  .header-slot, .site-header {height: 85px;}
  .header-inner {width: calc(100% - 48px);}
  .site-header.is-scrolled {height: 68px;}
}
@media (max-width: 700px) {
  :root {--header-anchor-offset: 94px;}
  :root.has-scrolled {--header-anchor-offset: 78px;}
  .header-slot, .site-header {height: 80px;}
  .header-inner {width: calc(100% - 40px);}
  .site-header.is-scrolled {height: 64px;}
  .site-header.is-scrolled .header-logo {width: 98px;}
  .main-nav {top: calc(100% - 1px); max-height: calc(100dvh - 95px); overflow-y: auto;}
}
@media (max-width: 370px) {
  .header-inner {width: calc(100% - 32px);}
  .main-nav {left: -16px; right: -16px;}
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .header-logo {transition: none;}
}
@media print {
  .header-slot {display: none;}
}

#a-propos,
#offre-pilot,
.about-brand::before,
.about-brand::after {
  background-color: var(--blush);
}

/* Keep each keyword and its icon together when the strip wraps. */
.expertise-strip {
  --expertise-gap: clamp(22px, 3.6vw, 55px);
  gap: var(--expertise-gap);
  flex-wrap: wrap;
}
.expertise-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--expertise-gap);
  min-width: 0;
}
.expertise-strip .expertise-item:first-child .icon {display: none;}
@media (max-width: 1150px) {
  .expertise-strip {--expertise-gap: 27px;}
}
@media (max-width: 900px) {
  .expertise-strip {--expertise-gap: 19px;}
}
@media screen and (max-width: 700px) {
  .expertise-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 20px;
    align-items: start;
  }
  .expertise-item {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    justify-content: start;
    justify-self: stretch;
    align-items: start;
    gap: 8px;
  }
  .expertise-strip .expertise-item:first-child .icon {display: inline-block;}
  .expertise-strip .expertise-label {
    display: block;
    min-width: 0;
    line-height: 24px;
    white-space: normal;
    text-align: left;
  }
  .expertise-strip .expertise-item .icon {margin-top: 1.5px;}
  .footer-bottom > span {
    order: 1;
    grid-column: 1 / -1;
    padding-top: 12px;
    margin-top: 4px;
  }
}
@media screen and (max-width: 370px) {
  .expertise-strip {padding-inline: 16px;}
}

/* Align the two right-hand expertise items with the mobile content edge. */
@media screen and (max-width: 700px) {
  .expertise-strip .expertise-item:nth-child(even) {
    justify-self: end;
    grid-template-columns: 21px auto;
    max-width: 100%;
  }
  .expertise-strip .expertise-item:nth-child(even) .expertise-label {
    text-align: right;
  }
}

/* Keep the two explicit contact actions side by side in both languages. */
.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.form-actions > .button {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 12px;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--cream);
}
.form-actions > .button:disabled {color: var(--muted);}
.form-actions .icon {width: 18px; height: 18px;}
.form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (max-width: 700px) {
  .form-actions {gap: 10px;}
  .form-actions > .button {padding: 12px 8px; font-size: 11px; gap: 6px;}
}

/* Confirmed contact submissions use a distinct, accessible success color. */
.form-status.is-success {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  padding: 16px 18px;
  color: #21643b;
  background: #eaf5ed;
  border: 1px solid #bad8c2;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
}
.form-status.is-success::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #21643b;
  color: #fff;
  border-radius: 50%;
  font: 700 16px/1 var(--body-font);
}
@media (max-width: 700px) {
  .form-status.is-success {padding: 14px; column-gap: 10px;}
}

/* Local social icon: no embedded content or third-party script. */
.footer-social {display: flex; align-items: center; margin-top: 14px;}
.social-link {display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; margin-left: -8px; color: inherit; font-size: 13px; text-decoration: none; border-radius: 6px;}
.social-link svg {display: block; flex: none;}
.social-link:hover {color: var(--red);}
.social-link:focus-visible {outline: 2px solid var(--red); outline-offset: 3px;}
.legal-footer .footer-social {justify-content: center; margin-top: 10px;}
