@charset "UTF-8";

/* ==========================================================================
   Groupe Legault — one-page site
   Dependency-free stylesheet (no Bootstrap, no Swiper).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand fonts
   The original site self-hosts two licensed families: "Futura PT" (Adobe)
   and "Brandon Grotesque" (HVD). Those files are not redistributable, so
   this build falls back to Jost — a geometric sans very close to Futura.
   If you hold the licences, drop the webfonts into assets/fonts/ and
   uncomment the blocks below; nothing else needs to change.
   --------------------------------------------------------------------------
@font-face {
  font-family: "Futura PT";
  src: url("../fonts/FuturaPT-Light.woff2") format("woff2"),
       url("../fonts/FuturaPT-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("../fonts/FuturaPT-Medium.woff2") format("woff2"),
       url("../fonts/FuturaPT-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brandon Grotesque";
  src: url("../fonts/BrandonGrotesque-Light.woff2") format("woff2"),
       url("../fonts/BrandonGrotesque-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
   -------------------------------------------------------------------------- */

/* ---------- Design tokens ---------- */
:root {
  --easeInOut: all 500ms ease-in-out;
  --linear: all 200ms linear;

  --primary-font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  --secondary-font-family: "Futura PT", "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --tertiary-font-family: "Brandon Grotesque", "Jost", "Century Gothic", "Avenir Next", sans-serif;

  --font-size-base: 1rem;
  --font-size-h1: 5.625rem;
  --font-size-h2: 2.25rem;
  --font-size-h3: 1.875rem;
  --font-size-h4: 1.563rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1.125rem;
  --font-size-p: var(--font-size-h5);

  --chineseBlack: #151513;
  --darkVanilla: #d6c3a2;
  --davyGrey: #58595b;
  --lightGrey: rgba(208, 209, 210, 0.2);
  --graniteGrey: #636569;
  --silver: #f2f2f2;
  --white: #fff;

  --container-max: 1280px;
  --gutter: 0.75rem;

  /* Height of .main-header.fixed-header, which covers the top of the viewport
     once the page is scrolled — anchored sections land below it. */
  --header-offset: 120px;
  /* The section title (.cat-title) overhangs its section by this much. */
  --cat-title-overhang: 2.625rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  background: var(--white);
  color: var(--chineseBlack);
  font-family: var(--primary-font-family);
  font-size: var(--font-size-p);
  font-weight: 400;
  line-height: normal;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  border: 0;
}

figure {
  line-height: 0;
}

::selection {
  color: #000;
  background: var(--darkVanilla);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

h1 span { font-weight: 700; }

a,
a:hover {
  transition: var(--easeInOut);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.text-center { text-align: center; }

.bs-title { margin-bottom: clamp(3.125rem, 2vw + 1rem, 6.25rem); }
.bs-description { margin-bottom: clamp(1.25rem, 2vw + 1rem, 3.125rem); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 10000;
  background: var(--darkVanilla);
  color: var(--chineseBlack);
  font-family: var(--secondary-font-family);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
}

.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible {
  outline: 2px solid var(--darkVanilla);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.btn-primary {
  background: var(--darkVanilla);
  border: 1px solid var(--darkVanilla);
  padding: 0.375rem 3.125rem;
  border-radius: 20px;
  font-size: var(--font-size-h5);
  line-height: 1.5;
  color: var(--davyGrey);
  font-family: var(--tertiary-font-family);
  font-weight: 300;
  transition: var(--easeInOut);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--davyGrey);
  border-color: var(--davyGrey);
  color: var(--darkVanilla);
}

.btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 4rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: var(--easeInOut);
}

.main-header .logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 169px;
  transition: var(--easeInOut);
}

.main-header .logo a { display: block; }

.main-header .logo img {
  width: 100%;
  display: block;
}

.main-header .language {
  display: flex;
  justify-content: flex-end;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--secondary-font-family);
}

.language a {
  text-decoration: none;
  color: var(--white);
}

.language a:hover { color: var(--darkVanilla); }

.main-header.fixed-header {
  background: rgba(0, 0, 0, 0.9);
  min-height: var(--header-offset);
  padding-top: 0.5rem;
  position: fixed;
}

.fixed-header .logo {
  width: 100px;
  top: -55px;
}

/* ==========================================================================
   Hero banner
   ========================================================================== */
.banner {
  background-color: var(--chineseBlack);
  background-image: url("../img/hero.png");
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner h1,
.banner p { color: var(--white); }

.banner p { font-size: var(--font-size-h2); }

.banner p span { color: var(--darkVanilla); }

.banner-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 900px;
  padding-top: 10rem;
}

.banner-content .bs-description { max-width: 800px; }

/* ---------- Pillars ---------- */
.banner-highlight-box {
  background-color: var(--chineseBlack);
  padding-bottom: 15rem;
}

.box-highlight {
  max-width: 965px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 0;
}

.iconbox {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* .pillar-static is a pillar with no section to link to — same presentation
   as the linked ones, minus the anchor and its hover affordance. */
.iconbox a,
.iconbox .pillar-static {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.iconbox img {
  margin-bottom: 3.445rem;
  height: 82px;
  width: auto;
}

.iconbox span {
  color: var(--white);
  text-align: center;
  font-size: var(--font-size-base);
  font-family: var(--secondary-font-family);
  text-transform: uppercase;
}

.iconbox a:hover span { color: var(--darkVanilla); }

/* Pillar targets: clear the fixed header and the overhanging section title,
   so a pillar click (or a deep link like /#innovation) shows the section title. */
.pillar-target {
  scroll-margin-top: calc(var(--header-offset) + var(--cat-title-overhang) + 1rem);
}

.scroll-down {
  margin-top: 4.875rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-down svg path { transition: var(--easeInOut); }

.scroll-down a:hover svg path[stroke] { stroke: var(--darkVanilla); }
.scroll-down a:hover svg path[fill] { fill: var(--darkVanilla); }

/* ==========================================================================
   Two-column sections
   ========================================================================== */
.two-column-section img {
  width: 100%;
  object-fit: cover;
}

.cat-title {
  font-size: var(--font-size-h4);
  text-transform: uppercase;
  font-family: var(--secondary-font-family);
  color: #000;
  display: flex;
  justify-content: center;
  position: absolute;
  top: calc(var(--cat-title-overhang) * -1);
  left: 50%;
  transform: translate(-50%);
  z-index: 1;
}

.cat-title span {
  background: var(--darkVanilla);
  padding: 30px;
  min-width: 470px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.two-col-grid > .col {
  display: flex;
  flex-direction: column;
}

/* The original theme equalised these with a jQuery matchHeight script;
   a fixed aspect ratio does the same job deterministically in CSS. */
.two-col-grid > .col > figure > img {
  aspect-ratio: 3 / 2;
  height: auto;
  width: 100%;
  object-fit: cover;
}

/* Keeps the "voir le site" buttons on a shared baseline across columns. */
.two-col-grid > .col > .column-item {
  flex: 1;
  justify-content: flex-start;
}

.two-col-grid > .col > .column-item .btn-wrap { margin-top: auto; }

.column-item {
  padding: 5.1875rem 5.625rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  max-width: 35.625rem;
  margin-left: auto;
  margin-right: auto;
}

.column-item figure { max-width: 208px; }

.column-item img { margin-bottom: 5rem; }

.column-item p {
  font-family: var(--secondary-font-family);
  font-weight: 300;
  min-height: 200px;
}

.lightGrey { background: var(--lightGrey); }

.spacing-column { padding-bottom: 8rem; }

/* ==========================================================================
   Brand grid (product development)
   ========================================================================== */
.three-column-section {
  padding: 11.125rem 0;
  background: var(--white);
}

/* Brand portfolio tiles. One .column-box per brand; adding a brand is one tile.
   Flex rather than grid so a short last row stays centred; tiles in a row
   stretch to the tallest, keeping the CTAs on a shared baseline. */
.brand-grid {
  --cols: 4;
  --tile-gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tile-gap);
}

.column-box {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--tile-gap)) / var(--cols));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  background: var(--silver);
  padding: 3rem 1.5rem;
}

.column-box figure {
  height: 108px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.column-box img {
  margin-bottom: 2.5rem;
  max-height: 108px;
  width: auto;
  object-fit: contain;
}

.column-box p {
  font-size: var(--font-size-h5);
  font-family: var(--secondary-font-family);
  font-weight: 300;
  text-align: center;
  max-width: 288px;
  margin-bottom: 2.625rem;
}

.column-box .btn-wrap { margin-top: auto; }

/* Product development intro — same measure and colour as the history copy. */
.section-intro {
  max-width: 83.33%;
  margin: 0 auto 8rem;
  text-align: center;
  color: var(--graniteGrey);
  line-height: 1.5;
}

/* Sub-sections of product development (portfolio, awards, key brands). */
.sub-title {
  font-size: var(--font-size-h4);
  font-family: var(--secondary-font-family);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: var(--graniteGrey);
  margin-bottom: 3.25rem;
}

.sub-section + .sub-section { margin-top: 8rem; }


/* ==========================================================================
   History + carousel
   ========================================================================== */
.slider-section { padding: 80px 0 50px 0; }

.slider-section .bs-title {
  margin-bottom: 50px;
  text-align: center;
  color: var(--graniteGrey);
  max-width: 83.33%;
  margin-left: auto;
  margin-right: auto;
}

.slider-section .bs-title h2 { margin-bottom: 1.5rem; }

.slider-section .bs-title p {
  font-size: var(--font-size-h2);
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 50px;
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease-in-out;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.carousel-slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-slide .overlay .container { height: 100%; }

.slider-section .cat-title {
  top: auto;
  bottom: 0;
  left: var(--gutter);
  transform: translateX(0);
  max-width: calc(100% - (var(--gutter) * 2));
}

.slider-section .cat-title span {
  min-width: 0;
  text-align: left;
  justify-content: flex-start;
}

.carousel-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.carousel-pagination button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--darkVanilla);
  opacity: 1;
  cursor: pointer;
  transition: var(--linear);
}

.carousel-pagination button[aria-current="true"] { background: var(--chineseBlack); }

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: linear-gradient(49.76deg, #161613 25.27%, #303031 59.06%);
  padding: 75px 0 30px 0;
  color: var(--silver);
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-logo img { max-width: 200px; }

.footer-title {
  font-size: 2.5rem;
  color: var(--darkVanilla);
  margin-bottom: var(--font-size-base);
  font-weight: 300;
}

.footer-description p {
  color: var(--white);
  font-size: var(--font-size-p);
}

.footer-description p span { color: var(--darkVanilla); }

.main-footer .link {
  font-size: var(--font-size-p);
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.875rem;
  font-weight: 300;
  text-decoration: none;
  font-family: var(--tertiary-font-family);
}

.main-footer .link:hover,
.footer-btm a:hover { color: var(--darkVanilla); }

.address {
  font-family: var(--secondary-font-family);
  text-align: right;
  font-weight: 300;
  font-size: var(--font-size-h5);
  font-style: normal; /* <address> defaults to italic */
}

.address span,
.address a {
  color: var(--darkVanilla);
  text-decoration: none;
}

.footer-btm { margin-top: 120px; }

.footer-btm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.main-footer .copyright,
.footer-btm a {
  color: var(--white);
  font-size: var(--font-size-base);
  font-weight: 300;
}

.main-footer .copyright {
  justify-content: flex-start;
  font-family: var(--secondary-font-family);
}

.main-footer .copyright a { text-decoration: none; }

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  font-family: var(--secondary-font-family);
}

/* ==========================================================================
   Inner pages (privacy policy, terms)
   ========================================================================== */
.text-left { text-align: left; }

.banner-inner {
  height: auto;
  min-height: 100%;
}

.banner-inner-content {
  max-width: 1035px;
  margin: 0 auto;
  align-items: flex-start;
  height: auto;
  padding-top: 20rem;
  padding-bottom: 8rem;
}

.banner-inner-content .sub-text { margin-top: 1.5rem; }

.sub-text p {
  font-size: var(--font-size-p);
  font-family: var(--secondary-font-family);
  font-weight: 300;
  margin-bottom: 2.5rem;
  /* The original theme set line-height:100% here, which crowds the long
     intro paragraphs on these pages to the point of being hard to read.
     Legal copy needs to be legible, so this deliberately differs. */
  line-height: 1.5;
}

.content-section {
  padding: 6.25rem 0;
}

.content-section h2,
.content-section h3 {
  color: var(--darkVanilla);
  margin-top: 50px;
  margin-bottom: 15px;
}

.content-section p,
.content-section li {
  font-family: var(--secondary-font-family);
  font-weight: 300;
  line-height: 1.6;
}

.content-section p { margin-bottom: 1.25rem; }

.content-section ul,
.content-section ol { padding-left: 1.5rem; }

.content-section li { margin: 5px 0; }

/* Scoped rather than a global `a` rule so the home page's nav, pills and
   buttons keep their own treatment. */
.content-section a,
.sub-text a {
  color: var(--darkVanilla);
  text-decoration: underline;
}

.content-section a:hover,
.sub-text a:hover { color: var(--davyGrey); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1681px) {
  .banner-highlight-box { padding-top: 7.5rem; }
  .container { max-width: 1400px; }
  .banner { height: 68.938rem; }
}

@media (max-width: 1200px) {
  :root {
    --font-size-h1: 4.625rem;
    --font-size-h2: 2.125rem;
    --font-size-h3: 1.725rem;
    --font-size-h4: 1.5rem;
    --font-size-h5: 1.25rem;
    --font-size-h6: 1.025rem;
    --font-size-p: var(--font-size-base);
  }

  .footer-description p { font-size: calc(var(--font-size-base) * 1.5); }
  .column-item { padding: 5.1875rem 3rem; }

  .brand-grid { --cols: 3; }
}

@media (max-width: 991px) {
  .brand-grid { --cols: 2; }

  .slider-section .bs-title,
  .section-intro { max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 3.25rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.025rem;
    --font-size-h6: 1rem;
    --font-size-p: var(--font-size-base);
    /* .cat-title is back in the flow below 768px, so nothing overhangs. */
    --cat-title-overhang: 0px;
  }

  .banner-content {
    height: auto;
    min-height: 100vh;
    padding-top: 12rem;
    padding-bottom: 4rem;
  }

  .pillar-grid { grid-template-columns: repeat(2, 1fr); }

  /* With an odd number of pillars the last one is an orphan on a 2-up grid — centre it. */
  .pillar-grid > .iconbox:nth-child(odd):last-child { grid-column: 1 / -1; }

  .two-col-grid { grid-template-columns: 1fr; }

  .main-footer { text-align: center; }

  .footer-description p { font-size: calc(var(--font-size-base) * 1.5); }

  .main-footer .link,
  .address,
  .main-footer .copyright,
  .footer-links,
  .footer-logo { justify-content: center; text-align: center; }

  .copyright { margin-bottom: 1.5rem; }

  .footer-title { margin-top: 1.5rem; }

  .footer-btm-grid { grid-template-columns: 1fr; }

  .iconbox,
  .iconbox img { margin-bottom: 2rem; }

  .iconbox img { max-width: 5rem; height: auto; }

  .scroll-down svg { max-width: 2.5rem; }

  .banner-highlight-box { padding-bottom: 7rem; }

  .cat-title {
    top: auto;
    position: relative;
    left: auto;
    transform: none;
  }

  .two-column-section figure { margin-bottom: 0; }

  .three-column-section { padding: 6rem 0; }

  .sub-section + .sub-section { margin-top: 5rem; }

  .section-intro { margin-bottom: 5rem; }

  .brand-grid { --tile-gap: 1rem; }

  .column-item img { margin-bottom: 3rem; }

  .cat-title span {
    padding: 1rem 1.5rem;
    overflow-wrap: break-word;
    min-width: 200px;
    text-align: center;
  }

  .slider-section .cat-title {
    top: auto;
    bottom: 0;
    position: absolute;
  }

  .slider-section .cat-title span { text-align: center; }

  .spacing-column { padding-bottom: 7rem; }

  .carousel-slide img { height: 480px; }
}

@media (max-width: 640px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 1.825rem;
  }

  .column-item { padding: 5.1875rem 1.625rem; }

  .carousel-slide img { height: 350px; }

  .footer-title { font-size: 2rem; }

  .footer-description p { font-size: calc(var(--font-size-base) * 1.25); }

  .footer-btm { margin-top: 70px; }

  .main-header { padding-top: 1.5rem; }

  .banner p { font-size: calc(var(--font-size-h3) * 1.025); }

  .spacing-column { padding-bottom: 5rem; }

  .brand-grid { --cols: 1; }

  .banner-inner-content {
    padding-top: 15rem;
    padding-bottom: 5rem;
  }

  .banner-inner-content p { font-size: calc(var(--font-size-base) * 1.25); }

  .banner-inner .bs-title { margin-bottom: 1rem; }

  .content-section { padding: 4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
