* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

/* Partie Header */

header {
  position: fixed;
  width: 100%;
  background-color: rgb(250, 250, 250);
  box-shadow:
    0 1px 0 rgb(177, 177, 177),
    0 6px 12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 0em 5em;
  z-index: 1;
}

header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: 80px;
  width: auto;
  display: block;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.navbar ul {
  display: flex;
  gap: 3em;
  list-style: none;
  align-items: center;
}

.navbar button {
  background: linear-gradient(90deg, rgb(242, 108, 79),rgb(248, 156, 94));
  border-style: hidden;
  border-radius: 50px;
  width: 150px;
  height: 40px;
}

.navbar button a {
  color: white;
}

.navbar a {
  text-decoration: none;
  color: rgb(0,0,0);
  font-family: "Permanent Marker", cursive;
  font-weight: 500;
  font-size: large;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: rgb(190, 55, 61);
}

.burger {
  display: none;
}

/* Main section */

main {
  background: url(./images/japon_background.webp);
  background-position: 50% 30%;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Quicksand", sans-serif;
  font-size: 18px;
}

main .grid__item{
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 8px;
  margin: 8px;
}

.section__hero {
  height: 100dvh;
  width: 100%;
  padding: 200px 60px 0px 60px;
}

.container__hero {
  max-width: 1200px;
  margin: 0 auto;
}

.grid__hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.hero__avatar {
  width: 20rem;
  height: 20rem;
  overflow: hidden;
  border: 4px solid rgb(250, 250, 250);
  border-radius: 50%;
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero__item.right {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 40px auto;
}

.hero__item.right span {
  display: inline-block;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.563rem;
  color: rgb(190, 55, 61);
  margin-bottom: 10px;
}

.hero__item.right h1 {
  font-family: 'Kaushan Script', cursive;
  font-size: 36px;
  margin-bottom: 15px;
}

.hero__item.right p {
  text-align: justify;
}

.grid__item.hero {
  max-width: 900px;
  padding: 20px;
  margin: 40px auto;
  text-align: center;
}

.section__hero h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 28px;
  color: rgb(190, 55, 61);
  margin-bottom: 15px;
}
.section__hero p {
  text-align: justify;
}

/* TEST */

.realisations {
  height: 100dvh;
  width: 100%;
  margin: 0;
  position: relative;
  color: rgb(255, 255, 255);
}

.container__realisations {
  max-width: 1200px;
  padding: 125px 10px 20px 10px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(0,0,0);
}

.section__title {
  text-align: center;
  margin-bottom: 10px;
  font-family: "Permanent Marker", cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(0,0,0);
}

.grid__realisations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid__item {
  perspective: 1000px;
}

.card {
  position: relative;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card__image {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.3s ease;
}

.card:hover .card__image {
  transform: scale(1.05);
}

.card__inner {
  padding: 15px 20px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(0,0,0);
  margin: 0 0 8px;
}

.category {
  font-size: 0.9rem;
  color: rgb(119, 119, 119);
  font-style: italic;
}

.card_overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card:hover .card_overlay {
  opacity: 1;
  pointer-events: auto;
}

.card_overlay a {
  color: rgb(255, 255, 255);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  background-color: rgb(190, 55, 61);
  border-radius: 30px;
  box-shadow: 0 4px 12px rgb(190, 55, 61);
  transition: background-color 0.3s ease;
}

.card_overlay a:hover {
  background-color: rgb(251, 128, 69);
  box-shadow: 0 4px 12px rgb(251, 140, 89);
}

/* Footer */

.container__footer {
  background-color: rgb(255, 255, 255);
  border-top: 1px solid rgb(177, 177, 177);
  padding: 1em 3em 1em 3em;
}

.grid__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.grid__item.socials {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.grid__item.copyright {
  display: flex;
  align-items: center;
  font-family: "Kaushan Script", cursive;
  font-size: 0.9em;
  font-weight: 500;
  height: 60px;
}

footer .socials {
  display: flex;
  gap: 1em;
  list-style: none;
}

.icon {
  display: inline-block;
  fill: rgb(190, 55, 61);
  transition: fill 0.3s ease;
}

.icon:hover {
  fill: rgb(249, 97, 64);
}
