/* COMPETENCES_DESKTOP 99:1911 and the individual V3 mobile frames. */
:root {
  --header-h: 96px;
  --gutter: clamp(30px, calc(var(--layout-width) * 0.104166667), 150px);
  --white: #fefdfc;
  --cream: #f8f4f0;
  --ink: #2a1716;
}

body {
  font-variation-settings: "wdth" 100;
}

.site-header {
  align-items: center;
  padding: 20px var(--gutter) 36px;
}

.brand img {
  width: 141px;
  height: 40px;
}

.site-nav {
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}

.nav-link[aria-current="page"] {
  font-weight: 700;
}

.competence-copy {
  justify-content: flex-start;
  padding: 56px 48px 56px var(--gutter);
}

.competence-copy-inner {
  width: min(477px, 100%);
}

#architecture .competence-copy-inner {
  transform: translateY(-22px);
}

#direction .competence-copy {
  padding-left: clamp(32px, calc(var(--layout-width) * 0.080555556), 116px);
  padding-right: var(--gutter);
}

#direction .competence-copy-inner {
  width: min(454px, 100%);
  transform: translateY(-40px);
}

.competence-picto {
  position: relative;
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 0 8px;
  overflow: hidden;
}

.competence-picto img {
  position: absolute;
  top: 0;
  left: -14px;
  width: 88px;
  height: 88px;
  max-width: none;
}

#direction .competence-picto {
  height: 79px;
}

#energie .competence-picto {
  width: 80px;
  height: 78px;
}

#energie .competence-picto img {
  left: -8px;
  top: -1px;
}

.competence-copy h1,
.competence-copy h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.competence-copy p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.competence-copy p + p {
  margin-top: 16px;
}

.competence-copy strong {
  font-weight: 700;
}

.button-row {
  margin-top: 16px;
  gap: 16px;
}

.button {
  min-width: 119px;
  height: 43px;
  padding: 0 24px;
  border-width: 1.5px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

.button-row .button + .button {
  width: 127px;
}

.competence-carousel {
  --carousel-dots-bottom: 76px;
}

#architecture .competence-slide > img {
  object-fit: cover;
}

#direction .competence-slide:first-child {
  display: grid;
  align-items: center;
}

#direction .competence-slide:first-child > img {
  width: 100%;
  height: min(440px, 70%);
  object-fit: cover;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: url("../icons/competences-gallery-prev.svg") center / 23px 23px no-repeat;
}

.carousel-arrow::before {
  content: none;
}

.carousel-arrow--prev {
  left: 5.5px;
}

.carousel-arrow--next {
  right: 5.5px;
  background-image: url("../icons/competences-gallery-next.svg");
  transform: translateY(-50%) rotate(180deg);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background-color: transparent;
  filter: contrast(1.3);
}

.carousel-dots {
  gap: 12px;
  height: 10px;
}

.carousel-dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  padding: 0;
}

button.carousel-dot::after {
  position: absolute;
  inset: -8px -4px;
  content: "";
}

.certification-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 244px;
  max-width: calc(100% - 64px);
  gap: 60px;
}

.certification-cecb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 244 / 52;
  overflow: hidden;
}

.certification-cecb img {
  position: absolute;
  width: 116.46%;
  height: 237.81%;
  max-width: none;
  left: -8.29%;
  top: -68.58%;
}

.certification-minergie {
  width: 211.106px;
  height: 57.299px;
  object-fit: contain;
}

.certification-link {
  display: block;
  width: 211px;
  max-width: 100%;
  height: 16px;
  margin: 0;
}

.certification-link img {
  width: 100%;
  height: 100%;
}

.method {
  --method-logo-length: min(1417px, calc(var(--layout-height) * 1.42269));
  --method-logo-thickness: calc(var(--method-logo-length) * 0.285109386);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: calc(var(--method-logo-length) + 160px);
  /* Center the content frame while keeping the logo anchored to the page edge. */
  padding: 80px calc(var(--gutter) + max(0px, (100% - 1440px) / 2));
  margin: 0;
}

.method::before {
  left: -18px;
  top: 80px;
  width: var(--method-logo-length);
  height: var(--method-logo-thickness);
  background: url("../icons/competences-method-brand.svg") center / 100% 100% no-repeat;
  opacity: 1;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
  pointer-events: none;
}

.method-content {
  width: min(749px, 66%);
}

.method .tag {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.method h2 {
  font-size: 35px;
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
}

.accordion {
  margin-top: 32px;
  border-color: var(--ink);
  border-width: 1px;
}

.accordion-item {
  border-color: var(--ink);
  border-width: 1px;
}

.accordion-trigger {
  grid-template-columns: 97px minmax(0, 1fr) 23px;
  gap: 0;
  padding-block: 24px;
  padding-inline: 0;
}

.accordion-number {
  font-size: 48px;
  font-weight: 700;
  line-height: 68px;
}

.accordion-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.accordion-symbol {
  width: 16px;
  height: 15.475px;
  margin-right: 3px;
  background-image: url("../icons/competences-accordion.svg");
  transform: rotate(45deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-symbol {
  background-image: url("../icons/competences-accordion.svg");
  transform: none;
}

.accordion-panel {
  padding: 0 98px 40px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
}

.site-footer {
  margin-top: 0;
}

.site-footer-inner {
  width: calc(100% - var(--gutter) * 2);
  max-width: none;
  min-height: 88px;
  grid-template-columns: minmax(141px, 1fr) minmax(0, 430px) auto;
  padding-block: 24px;
}

.footer-logo img {
  width: 141px;
  height: 40px;
}

.site-footer-inner p {
  font-size: 12px;
  line-height: 15px;
}

.site-footer-inner strong {
  font-weight: 600;
}

.footer-contact {
  align-items: center;
  gap: 32px;
  font-size: 14px;
  line-height: 17px;
}

.footer-contact a:not([aria-label]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact img {
  width: 21px;
  height: 21px;
}

.competence-row-arrow {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }

  .site-nav {
    gap: 28px;
  }

  .competence-copy,
  #direction .competence-copy {
    padding-inline: 32px;
  }

  .competence-copy h1,
  .competence-copy h2 {
    font-size: 28px;
  }

  .button {
    min-width: 0;
    padding-inline: 16px;
  }

  .method-content {
    width: 78%;
  }

  .method::before {
    left: -18px;
    height: 140px;
    background-size: contain;
  }

  .method h2 {
    font-size: 30px;
  }

  .accordion-trigger {
    grid-template-columns: 72px minmax(0, 1fr) 23px;
  }

  .accordion-panel {
    padding-inline: 72px 24px;
  }

  .site-footer-inner {
    grid-template-columns: auto 1fr auto;
    gap: 20px;
  }

  .footer-contact {
    gap: 16px;
    font-size: 12px;
  }
}

@media (max-width: 840px) and (hover: none) and (pointer: coarse) {
  :root {
    --header-h: 70px;
    --gutter: 30px;
  }

  .site-header {
    padding: 0 32px;
    align-items: center;
  }

  .brand img {
    width: 115px;
    height: 33px;
  }

  .competence-row {
    height: max(500px, calc(100svh - var(--header-h)));
  }

  .competence-copy,
  #direction .competence-copy {
    padding: 20px 30px 90px;
  }

  .competence-copy-inner,
  #architecture .competence-copy-inner,
  #direction .competence-copy-inner {
    width: 100%;
    transform: none;
  }

  .competence-picto {
    width: 76px;
    height: 76px;
    margin-bottom: 4px;
  }

  .competence-picto img {
    left: -12px;
  }

  #direction .competence-picto {
    height: 80px;
  }

  #energie .competence-picto {
    width: 79px;
    height: 79px;
  }

  #energie .competence-picto img {
    left: -9px;
    top: 0;
  }

  .competence-copy h1,
  .competence-copy h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .competence-copy p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.6;
  }

  .competence-copy p strong {
    font-size: 14px;
  }

  .button-row {
    margin-top: 8px;
    gap: 8px;
  }

  .button,
  .button-row .button + .button {
    position: relative;
    min-width: 0;
    width: 82px;
    height: 27px;
    padding: 0;
    border-width: 1px;
    border-radius: 8px;
    font-size: 9px;
    line-height: 11px;
  }

  .button::after {
    position: absolute;
    inset: -8px 0;
    content: "";
  }

  #direction .button-row .button:first-child {
    width: 70px;
  }

  .competence-slide {
    background: var(--cream);
  }

  .competence-slide > img {
    height: calc(100% - 124px);
    object-fit: cover;
  }

  #direction .competence-slide:first-child {
    display: flex;
    align-items: center;
    padding-bottom: 70px;
  }

  #direction .competence-slide:first-child > img {
    height: min(244px, calc(var(--layout-width) * 0.61));
  }

  .certification-slide {
    padding-bottom: 70px;
  }

  .certification-inner {
    width: 200px;
    max-width: calc(100% - 64px);
  }

  .certification-minergie {
    width: 180px;
    height: 48.855px;
  }

  .certification-cecb {
    width: 214px;
  }

  .certification-link {
    width: 200px;
    height: 15.166px;
  }

  .competence-row-dots {
    bottom: 80px;
    gap: 8px;
    height: 8px;
    padding: 0;
  }

  .competence-row-dots .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .competence-row-arrow:not([hidden]) {
    display: grid;
    top: calc((100% - 124px) / 2);
  }

  .competence-row-arrow.carousel-arrow--prev {
    left: 0;
  }

  .competence-row-arrow.carousel-arrow--next {
    right: 0;
  }

  #direction .competence-row-arrow,
  #energie .competence-row-arrow {
    top: calc((100% - 70px) / 2);
  }

  .method {
    display: block;
    min-height: 0;
    padding: 59px 30px 62px;
  }

  .method-content {
    width: 100%;
  }

  .method h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .accordion {
    margin-top: 16px;
  }

  .accordion-trigger {
    grid-template-columns: minmax(0, 1fr) 23px;
    row-gap: 0;
    padding-block: 16px;
  }

  .accordion-number {
    font-size: 24px;
    line-height: 34px;
  }

  .accordion-title {
    font-size: 20px;
    line-height: 28px;
  }

  .accordion-symbol {
    width: 16px;
    height: 15.475px;
  }

  .accordion-panel {
    padding: 0 0 16px;
    font-size: 11px;
    line-height: 1.6;
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
    min-height: 58px;
    padding-block: 16px;
    align-items: end;
  }

  .footer-logo {
    transform: none;
  }

  .footer-logo img {
    width: 54px;
    height: 15px;
  }

  .site-footer-inner > p {
    margin: 0;
    font-size: 8px;
    line-height: 10px;
  }

  .footer-contact {
    gap: 16px;
    font-size: 9px;
    line-height: 11px;
  }

  .footer-contact img {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 360px) and (hover: none) and (pointer: coarse) {
  .site-footer-inner > p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
  }

  .footer-contact {
    grid-row: 1;
  }
}

@media (max-width: 840px) and (max-height: 569px) and (hover: none) and (pointer: coarse) {
  .competence-mobile-track {
    touch-action: pan-x pan-y pinch-zoom;
  }
}
