/*!
Theme Name: Aurélien Theme
Author: Aurélien

*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  box-sizing: border-box;
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
  flex: 1;
  padding-top: 4.5rem;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* || General styles */

:root {
  /* Color styles */
  --terraz: rgba(197, 178, 0, 1);
  --noir: rgba(0, 0, 0, 1);
  --blanc: rgba(255, 255, 255, 1);
  --vert-fonce: rgba(62, 82, 76, 1);
  --light-grey: rgba(247, 245, 244, 1);
  --peinture: rgba(124, 64, 147, 1);
  --isolation: rgba(211, 134, 0, 1);
  --sablage: rgba(139, 95, 60, 1);
  --platrerie: rgba(11, 168, 158, 1);
  --vert-clair: rgba(95, 130, 120, 1);
  --vert-fluo: rgba(161, 255, 227, 1);

  /* Effect styles */
  --shadow----100: 0px 4px 4px rgba(24, 39, 75, 0.08),
    0px 2px 4px rgba(24, 39, 75, 0.12);
  --shadow----200: 0px 8px 8px rgba(24, 39, 75, 0.08),
    0px 4px 6px rgba(24, 39, 75, 0.12);
  --shadow----300: 0px 8px 16px rgba(24, 39, 75, 0.08),
    0px 6px 8px rgba(24, 39, 75, 0.12);
  --shadow----400: 0px 8px 24px rgba(24, 39, 75, 0.08),
    0px 6px 12px rgba(24, 39, 75, 0.12);
  --shadow----600: 0px 12px 42px rgba(24, 39, 75, 0.12),
    0px 8px 18px rgba(24, 39, 75, 0.12);
  --shadow----700: 0px 14px 64px rgba(24, 39, 75, 0.12),
    0px 8px 22px rgba(24, 39, 75, 0.12);
  --shadow----800: 0px 18px 88px rgba(24, 39, 75, 0.14),
    0px 8px 28px rgba(24, 39, 75, 0.12);
  --shadow----500: 0px 10px 32px rgba(24, 39, 75, 0.1),
    0px 6px 14px rgba(24, 39, 75, 0.12);

  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 1.5rem;
  --h4: 1.125rem;
  --body: 1rem;
  --label: 1.12rem;
  --chiffres-clé: 4rem;
  --links: 1rem;
  --lead: 1.25rem;
  --small-links: 0.88rem;
  --icon: 1rem;
  --caption: 0.88rem;

  --max-width-value: 1440px;
  --lg-width-value: 960px;
  --md-width-value: 640px;
}

/* || Typography */

html {
  font-family: "Poppins", sans-serif;
}

h1 {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 4.5rem;
  margin: 0 0 2rem 0;
}
h2 {
  font-size: var(--h2);
  font-weight: 600;
  line-height: 3.625rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem 0;
}
h3 {
  font-size: var(--h3);
  margin: 0 0 0.75rem 0;
}
h4 {
  font-size: var(--h4);
  font-weight: 600;
  margin: 0 0 0.2rem 0;
}
p {
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.5rem;
  margin: 0;
}

/* utils */

.container {
  display: flex;
  padding: 4rem 2rem;
}

.content-lg {
  max-width: var(--max-width-value);
  width: 100%;
}

.content-md {
  max-width: var(--md-width-value);
  width: 100%;
}

.justify-center {
  justify-content: center;
}

.justify-left {
  justify-content: flex-start;
}

.text-center {
  text-align: center;
}
.banner-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 24rem;
}

.banner-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 4rem 4rem 4rem;
}

.banner-content {
  max-width: 53.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.banner-content h1 {
  text-align: center;
}

.button {
  background-color: var(--noir);
  border-radius: 2px;
  border-style: none;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: var(--h4);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  outline: none;
  padding: 0.5rem 1.5rem;
  position: relative;
  text-align: center;
  text-transform: none;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}
.button:hover {
  background-color: rgb(74, 74, 74);
}

.button-31:hover,
.button-31:focus {
  opacity: 0.75;
}

/* header navbar */

header {
  position: fixed;
  width: 100%;
  z-index: 999;
  /* laisser de la place pour la bar wordpress */
  top: var(--wp-admin--admin-bar--height, 0);
}
.nav {
  background-color: var(--blanc);
  display: flex;
  min-height: 4.5rem;
  /* input checkbox must be before nav-container in Dom */
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-sizing: border-box;
  box-shadow: 0px 3.4px 10px rgba(0, 0, 0, 0.027),
    0px 25px 80px rgba(0, 0, 0, 0.07);
}

.nav-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  display: none;
}

.nav-header > .nav-logo {
  font-size: 22px;
  color: #fff;
}

.menu {
  display: flex;
  gap: 2rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu > li > a {
  text-decoration: none;
  color: var(--noir);
  cursor: pointer;
}

.menu > .current-menu-item a {
  color: var(--terraz);
}

.hamburger {
  margin: 0 auto;
  width: 30px;
  height: 30px;
  position: relative;
}

.hamburger .bar {
  padding: 0;
  width: 30px;
  height: 4px;
  background-color: var(--noir);
  display: block;
  transition: all 0.3s ease-in-out;
  position: absolute;
}

.bar1 {
  top: 0;
}

.bar2,
.bar3 {
  top: 13.5px;
}

.bar3 {
  right: 0;
}

.bar4 {
  bottom: 0;
}
.checkbox1:checked + label > .hamburger1 > .bar1 {
  transform: rotate(45deg);
  transform-origin: 5%;
  width: 41px;
}

.checkbox1:checked + label > .hamburger1 > .bar2 {
  transform: translateX(-40px);
  background-color: transparent;
}

.checkbox1:checked + label > .hamburger1 > .bar3 {
  transform: translateX(40px);
  background-color: transparent;
}

.checkbox1:checked + label > .hamburger1 > .bar4 {
  transform-origin: 5%;
  transform: rotate(-45deg);
  width: 41px;
}
.visuallyHidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.menu .current-menu-parent a {
  color: var(--terraz);
}

@media (max-width: 50rem) {
  .nav {
    padding: 1rem;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
  }
  .nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-container > .menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background-color: var(--blanc);
    height: 0;
    overflow: hidden;
  }
  .nav-container > .menu > li {
    width: 100%;
    margin-top: 1.5rem;
  }
  .nav > #checkbox1:checked ~ .nav-container .menu {
    height: auto;
    padding-bottom: 2rem;
  }
}

/* Key figures */

.key-figures {
  background-color: var(--vert-fonce);
  padding: 4rem;
  display: flex;
  justify-content: center;
  min-height: 50vh;
}

.key-figures-content {
  max-width: var(--max-width-value);
  display: flex;
  flex-direction: row;
  gap: 4rem;
  color: var(--blanc);
}

.key-figures h2 {
  color: var(--blanc);
}

.key-figures-image,
.key-figures-main {
  flex: 1 1 50%;
}

.key-figures-image {
  object-fit: cover;
}

.key-figures-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  padding-top: 2rem;
}

.key-figures-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: space-between;
}

.key-figures-label {
  color: var(--vert-fluo);
}

.key-figures-value {
  font-size: var(--h1);
}

/* Services */

.services {
  background-color: var(--blanc);
  padding: 4rem;
  display: flex;
  justify-content: center;
  min-height: 50vh;
}

.services-content {
  max-width: var(--max-width-value);
  display: flex;
  flex-direction: row;
  gap: 4rem;
  color: var(--noir);
}

.services-main {
  flex: 2;
}

.services-image {
  flex: 1.5;
}

/* services archive page */

.services-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.all {
  cursor: pointer;
  background-color: var(--light-grey);
  color: var(--noir);
  border-radius: 99px;
  padding: 1rem 1.5rem;
  border: none;
  align-items: center;
  text-decoration: none;
}

.services-link {
  display: flex;
  height: 3rem;
  flex-direction: row;
  gap: 0.5rem;
  cursor: pointer;
  background-color: var(--light-grey);
  border-radius: 99px;
  padding: 0.2rem 1rem 0.2rem 0.2rem;
  border: none;
  align-items: center;
  text-decoration: none;
}

.services-link h4 {
  margin: 0;
}

.image--wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.active-link {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
    rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.active-link h4 {
  color: var(--blanc);
  margin: 0;
}

.all.active-link {
  background-color: var(--noir);
}

.peinture .image--wrapper {
  background-color: var(--peinture);
}
.peinture {
  color: var(--peinture);
}
.peinture.active-link {
  background-color: var(--peinture);
}

.isolation .image--wrapper {
  background-color: var(--isolation);
}
.isolation {
  color: var(--isolation);
}
.isolation.active-link {
  background-color: var(--isolation);
}

.echafaudage .image--wrapper {
  background-color: var(--terraz);
}
.echafaudage {
  color: var(--terraz);
}
.echafaudage.active-link {
  background-color: var(--terraz);
}

.sablage .image--wrapper {
  background-color: var(--sablage);
}
.sablage {
  color: var(--sablage);
}
.sablage.active-link {
  background-color: var(--sablage);
}

.platrerie .image--wrapper {
  background-color: var(--platrerie);
}
.platrerie {
  color: var(--platrerie);
}
.platrerie.active-link {
  background-color: var(--platrerie);
}

/* project card */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background-color: var(--light-grey);
  position: relative;
  --image-scale: 1;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.project-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.project-card figure {
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transform: scale(var(--img-scale));
  transition: transform 0.4s ease-in-out;
}

.related-services {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-card-body a {
  color: var(--noir);
}

.related-services .services-link {
  padding: 0;
}

.project-card:hover {
  box-shadow: 0px 0px 30px rgba(90, 90, 90, 0.347);
  --img-scale: 1.05;
}

.project-card a::after {
  position: absolute;
  inset-block: 0;
  inset-inline: 0;
  cursor: pointer;
  content: "";
}

/* Footer */
.footer-container {
  display: flex;
  justify-content: center;
  padding: 4rem;
  background-color: var(--light-grey);
}
.footer-content {
  width: 100%;
  max-width: var(--max-width-value);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4rem;
}

.footer-main {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.footer-information {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-nav a,
.footer-information a,
.footer-information i {
  color: var(--vert-fonce);
  font-size: var(--h4);
}

.footer-information-link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-company-address {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.footer-nav .menu {
  gap: 1rem;
  flex-direction: column;
  display: flex;
}

@media (max-width: 64rem) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-container {
    padding: 4rem 2rem;
  }
  .footer-main {
    justify-content: space-between;
  }
}

@media (max-width: 40rem) {
  .footer-main {
    gap: 2rem;
    flex-direction: column;
  }
  .footer-content {
    align-items: flex-start;
  }
}
