/* Header, footer & navigation shared across every page of the Yellow' demo site.
   Deliberately written with plain CSS (not Tailwind design tokens) so it renders
   identically regardless of which page-specific Tailwind config is loaded. */

/* Self-hosted font files (assets/fonts). Declared after the Google Fonts
   <link> tags in every page's <head>, so these local files take precedence
   over the CDN versions for the weights they cover. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vogun";
  src:
    url("../fonts/Vogun-Medium.otf") format("opentype"),
    url("../fonts/Vogun-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vogun";
  src: url("../fonts/vogun-2.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
/* Site-wide heading override: all H1/H2 use Vogun (police secondaire de la
   charte graphique Yellow', réservée aux titres) regardless of which
   page-specific Tailwind font-* utility class is applied. */
h1,
h2 {
  font-family: "Vogun", "Inter", sans-serif !important;
  font-weight: 500 !important;
}

/* Mobile safety net: several pages set h1/h2 font-size via fixed-px Tailwind
   tokens (text-display-lg = 64px, text-headline-lg = 48px, ...) with no
   responsive variant, which clips long words on narrow screens. Clamp the
   rendered size down on small viewports regardless of which token is used. */
@media (max-width: 640px) {
  h1 {
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.15 !important;
  }
  h2 {
    font-size: clamp(22px, 6.5vw, 34px) !important;
    line-height: 1.2 !important;
  }
}

/* Reusable utility: apply Vogun (police secondaire) to buttons/badges/labels
   outside of H1/H2 — e.g. pill CTAs and tag lists. */
.vogun-button {
  font-family: "Vogun", "Inter", sans-serif !important;
  font-weight: 500;
}
.font-headline-sm {
  font-family: "Vogun", "Inter", sans-serif !important;
  font-weight: 500;
}

html {
  scroll-behavior: smooth;
}

/* One-page nav anchors on index.html — offset so the sticky header doesn't cover the section title */
#yellow,
#methode,
#accompagnement,
#pour-qui,
#references {
  scroll-margin-top: 96px;
}

.site-header {
  background-color: #f9f9f9;
  border-bottom: 1px solid rgba(124, 120, 95, 0.2);
  font-family: "Inter", sans-serif;
}

.site-header .site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header .site-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.site-nav-link {
  color: #4a4731;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: #686000;
}

.site-nav-link.active {
  color: #686000;
  font-weight: 700;
  border-bottom-color: #686000;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffd62c;
  color: #11100b;
  padding: 10px 24px;
  border-radius: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

.site-cta:hover {
  background-color: #d9c900;
}

.site-cta:active {
  transform: scale(0.97);
}

.site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #11100b;
}

.site-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 24px;
  background-color: #f9f9f9;
  border-top: 1px solid rgba(124, 120, 95, 0.15);
  font-family: "Inter", sans-serif;
}

.site-mobile-nav.open {
  display: flex;
}

.site-mobile-nav .site-nav-link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(124, 120, 95, 0.1);
}

.site-mobile-nav .site-nav-link.active {
  border-bottom-color: rgba(124, 120, 95, 0.1);
}

.site-mobile-nav .site-cta {
  margin-top: 12px;
  justify-content: center;
}

@media (max-width: 767px) {
  .site-header .site-nav-desktop,
  .site-header .site-cta-desktop {
    display: none;
  }
  .site-menu-toggle {
    display: inline-flex;
  }
}

/* Footer */
.site-footer {
  background-color: #11100b;
  color: #e5e2e1;
  font-family: "Inter", sans-serif;
  margin-top: -20px;
  position: relative;
}

.site-footer a {
  color: #c8c6c5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffd62c;
}

.site-footer .site-footer-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.site-footer .site-footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7c785f;
  margin-bottom: 16px;
}

.site-footer .site-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 767px) {
  .site-footer .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 20px 24px;
  }
}

.site-footer .site-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(229, 226, 225, 0.5);
}

.site-footer .site-footer-bottom a {
  color: rgba(229, 226, 225, 0.6);
}

.site-footer .site-footer-bottom a:hover {
  color: #ffd62c;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.text-on-primary-container {
  --tw-text-opacity: 1;
  color: rgb(41 40 35 / var(--tw-text-opacity, 1)) !important;
}
.text-on-primary-container\/80 {
  color: rgb(41 40 35 / 0.8) !important;
}
