@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Pompiere&display=swap");
.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 1.1em;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  /* Support pour les WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support pour Safari et Chrome. */
  text-rendering: optimizeLegibility;
  /* Support pour Firefox. */
  -moz-osx-font-smoothing: grayscale;
  /* Support pour IE. */
  font-feature-settings: "liga";
}
.material-icons::before {
  content: attr(data-icon);
}

#pagereal {
  margin-top: 50px;
  padding: 0 6vw;
}
#pagereal h2 {
  font-family: "Pompiere", "Kanit", Arial, Helvetica, sans-serif;
  font-size: 3rem;
  margin-bottom: 1em;
}
#pagereal figure[class^=realisation] {
  max-width: 100%;
  margin-bottom: 50px;
}
#pagereal figure[class^=realisation] img {
  width: 100%;
  justify-self: center;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
}

#pagereal figure[class^=realisation] img[src$="png"] {
  box-shadow: none;
}
#pagereal figure[class^=realisation] > div img {
  max-width: 200px;
}

#pagereal figure[class^=realisation] p {
  font-size: 1.3rem;
  align-self: center;
  line-height: 1.6;
}
@media screen and (min-width: 1000px) {
  #pagereal figure[class^=realisation] {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  color: black;
  font-family: "Kanit", Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  background-color: rgba(0, 0, 0, 0.6);
  background-clip: content-box;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: black;
}

a {
  color: inherit;
  text-decoration: inherit;
}

a, button, input, textarea {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4);
}

.uppercase {
  text-transform: uppercase;
}

::selection {
  background-color: black;
  color: white;
}

#homeheader {
  display: grid;
  grid-template-columns: 1fr;
  font-family: "Pompiere", "Kanit", Arial, Helvetica, sans-serif;
  font-size: calc(2rem + 5vmin);
  align-items: center;
  justify-items: center;
}
@media screen and (min-width: 1200px) {
  #homeheader {
    min-height: 100vh;
    grid-template-columns: repeat(2, 1fr);
    gap: 5vw;
  }
}
#homeheader .left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
}
#homeheader .left h1 {
  font-size: 1em;
  font-weight: 500;
  word-spacing: 1rem;
}
#homeheader .left .wrapper {
  position: relative;
}
#homeheader .left .wrapper img {
  aspect-ratio: 1/1;
  object-position: center;
  object-fit: cover;
  border-radius: 50%;
  max-width: 300px;
  user-select: none;
}
@media screen and (min-width: 700px) {
  #homeheader .left h1 {
    transform: translateX(30px);
  }
  #homeheader .left .wrapper::before, #homeheader .left .wrapper::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: -1;
  }
  #homeheader .left .wrapper::before {
    transform: translate(-40%, -50%) scale(1.1);
    background-color: #E8EDD4;
  }
  #homeheader .left .wrapper::after {
    transform: translate(40%, -50%) scale(1.1);
    background-color: #D4C7C4;
  }
}
#homeheader .right .bienvenue {
  font-size: calc(2rem + 2vmin);
  font-weight: bold;
}
@media screen and (min-width: 1200px) {
  #homeheader .left {
    justify-self: flex-end;
  }
  #homeheader .right {
    justify-self: flex-start;
  }
}

section.projets {
  max-width: 1100px;
  width: 88%;
  margin: 75px auto 150px auto;
  --gap: 2rem;
}
@media screen and (min-width: 1200px) {
  section.projets {
    --gap: 2vmax;
  }
}
section.projets ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
  list-style: none;
}
section.projets ul li {
  transition: 0.1s ease;
  border-radius: 5px;
  max-width: 400px;
  align-self: stretch;
  justify-self: center;
}
section.projets ul li:hover {
  filter: brightness(0.9);
}
section.projets ul li a {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  font-size: 1.3rem;
  display: block;
}
section.projets ul li a figure {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  align-items: center;
}
section.projets ul li a figure img {
  width: 100%;
  height: auto;
}
section.projets ul li a figure figcaption {
  margin-top: 1em;
}
section.projets ul:not(:last-of-type) {
  margin-bottom: var(--gap);
}
section.projets .rang-1 li {
  background-color: #E8EDD4;
}
section.projets .rang-2 li {
  background-color: #ededed;
}
section.projets .rang-3 li {
    background-color: #D4C7C4;
  }

form {
  display: grid;
  row-gap: 20px;
  column-gap: 40px;
  grid-template-areas: "prenom nom" "email info" "textarea textarea" "submit submit";
  grid-template-columns: 1fr 1fr;
  padding-top: 40px;
  position: relative;
  margin: 0 auto;
  width: 88%;
  max-width: 600px;
  margin-bottom: 100px;
}
form .emaildiv {
  grid-area: email;
}
form .emailinfo {
  grid-area: info;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
  user-select: none;
}
form .textareadiv {
  grid-area: textarea;
}
form textarea {
  resize: vertical;
  min-height: 200px;
  padding: 10px;
}
form input,
form textarea {
  border: 1px solid rgba(20, 20, 20, 0.3);
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  outline: none;
}
form button[type=submit] {
  grid-area: submit;
  padding: 10px;
  border: none;
  cursor: pointer;
  display: inline-block;
  background-color: black;
  color: white;
  border-radius: 5px;
  width: 50%;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}
form button[type=submit] span.material-icons {
  margin-left: 5px;
}
form button[type=submit]:hover,
form button[type=submit]:focus {
  background-color: rgb(50, 50, 50);
}
form input:focus,
form textarea:focus {
  border-color: black;
}
form input:not(:focus):not(:placeholder-shown):invalid,
form textarea:not(:focus):not(:placeholder-shown):invalid {
  border-color: red;
}
form div {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: stretch;
}
form div label {
  position: absolute;
  top: 0;
  left: 5px;
  font-size: 0.8rem;
  background-color: white;
  opacity: 0;
  transform: translateY(0);
  visibility: hidden;
  padding: 0 5px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
form input:not(:placeholder-shown) + label,
form textarea:not(:placeholder-shown) + label {
  transition: 0.1s ease;
  transition-property: opacity, visibility, transform;
  transform: translateY(-50%);
  opacity: 1;
  visibility: visible;
}
@media screen and (max-width: 700px) {
  form {
    grid-template-areas: "prenom" "nom" "email" "info" "textarea" "submit";
    grid-template-columns: 1fr;
  }
}

#contact {
  scroll-margin-top: 80px;
}
#contact header {
  padding: 0 6vw;
  text-align: center;
  font-size: 1.2rem;
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}
#contact header h2 {
  font-size: 2rem;
}
#contact header a {
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
}
#contact header a:hover {
  text-decoration: none;
}

#send-form {
  padding: 0 6vw;
}

#mainnav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(2);
  padding: 0 6vw;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9;
}
#mainnav .logo {
  height: 60%;
  z-index: 10;
}
#mainnav .logo img {
  height: 100%;
}
#mainnav #burger {
  display: none;
  flex-direction: column;
  height: 12px;
  width: 26px;
  align-items: stretch;
  background-color: transparent;
  border: none;
  cursor: pointer;
  justify-content: space-between;
  position: relative;
}
#mainnav #burger::before, #mainnav #burger::after {
  content: "";
  border-bottom: 3px solid black;
  position: absolute;
  width: 100%;
  display: block;
  transition: top 0.15s ease 0.15s, bottom 0.15s ease 0.15s, transform 0.15s ease 0s, border-color 0.3s ease;
}
#mainnav #burger::before {
  top: 0;
  bottom: auto;
}
#mainnav #burger::after {
  top: auto;
  bottom: 0;
}

@media screen and (min-width: 600px) {
  .navigation {
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    list-style: none;
    position: relative;
  }
  .navigation li {
    transition: opacity 0.1s ease;
  }
  .navigation li:hover, .navigation li:focus {
    opacity: 0.6;
  }
}
@media screen and (max-width: 600px) {
  #mainnav #burger {
    display: block;
    z-index: 10;
  }
  #mainnav .logo {
    transition: filter 0.3s ease;
  }
  #mainnav .navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    list-style: none;
    padding: 150px 6vw;
    overflow-y: auto;
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2;
    background-color: black;
    clip-path: polygon(0 0, 100% 0%, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 8;
  }
  #mainnav .navigation li:hover {
    opacity: 0.8;
  }
  #mainnav .navigation ::-webkit-scrollbar {
    display: none;
  }
  #mainnav.open .logo {
    filter: invert(1);
  }
  #mainnav.open #burger::before, #mainnav.open #burger::after {
    transition: top 0.15s ease 0s, bottom 0.15s ease 0s, transform 0.15s ease 0.15s, border-color 0.3s ease;
    border-color: white;
  }
  #mainnav.open #burger::before {
    top: calc(50% - 1.5px);
    transform: rotate(-45deg);
  }
  #mainnav.open #burger::after {
    bottom: calc(50% - 1.5px);
    transform: rotate(45deg);
  }
  #mainnav.open .navigation {
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0% 100%);
  }
}
#realisations {
  scroll-margin-top: 80px;
}
img.logo-studio {
    width: 50%;
}
img.studio-actus {
    width: 200px;
}
p.bouton {
    background-color: black;
    color: white;
    width: max-content;
    border-radius: 20px;
    padding: 5px;
}
img.competences {
  width: 200px;
}

h2.titre {
  font-size: calc(2rem + 2vmin);
  font-weight: bold;
  justify-content: center;
}

.video {
  height: 500px;
}