@import url("https://fonts.googleapis.com/css2?family=Poppins: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&display=swap");

body {
  font-family: Poppins;
  color: #633d3c;
  user-select: none;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Main */

main {
  z-index: 1;
}

.modale {
  display: none;
}

.modale.active {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modale-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background-color: #f9f2ed;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  z-index: 1000;
  font-size: 1rem;
}

.modale-content h2 {
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.modale-content span {
  position: absolute;
  top: 2rem;
  right: 3rem;
  font-size: 2.5rem;
  cursor: pointer;
}

@media (max-width: 750px) {
  .modale-content {
    width: 80%;
    height: min-content;
  }

  .modale-content span {
    top: 1rem;
    right: 2rem;
  }

  .modale-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 380px) {
  .modale-content h2 {
    font-size: 1.5rem;
  }

  .modale-content p {
    font-size: 0.8rem;
  }
}

/* Header */
header {
  background-color: #f9f2ed;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#lien_logo {
  flex-basis: 45%;
}

#logo {
  width: 18%;
  margin: 0.85rem 0;
  margin-left: 3rem;
}

header nav {
  margin-right: 4rem;
  display: flex;
  margin-top: 1rem;
}

.navigation {
  margin-left: 4rem;
  display: flex;
  flex-direction: column;
}

.navigation a {
  color: #633d3c;
  text-align: center;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
}

.navigation hr {
  width: 3rem;
  border: solid 0.17rem #f26a6c00;
  margin-left: 0;
  margin-top: 0.2rem;
}

.selected hr {
  display: block;
  border: solid 0.17rem #f26a6c;
}

.navigation:hover hr {
  display: block;
  border: solid 0.17rem #f26a6c;
  animation: 1.2s slidein;
}

@keyframes slidein {
  from {
    width: 0;
  }

  to {
    width: 3rem;
  }
}

@media only screen and (max-width: 768px) {
  #logo {
    width: 40%;
  }

  .navigation a {
    font-size: 1rem;
  }

  .navigation hr {
    display: none;
  }

  .navigation:hover hr {
    display: none;
  }
}

.burger-menu {
  display: none;
}

@media only screen and (max-width: 768px) {
  .navigation {
    padding: 1.5rem 0;
    margin: 0;
    border-bottom: solid 1px #f9f2ed;
  }

  .navigation a {
    color: #f9f2ed;
    font-size: 1.2rem;
  }

  .clic {
    transform: scaleY(1);
    transition-duration: 1.5s;
    transform-origin: top;
  }

  .navigation hr {
    display: none;
  }

  .selected a {
    color: #633d3c;
  }

  header {
    position: relative;
  }

  nav {
    position: absolute;
    top: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f26a6cb9;
    backdrop-filter: blur(5px);
    transform: scaleY(0);
    transform-origin: top;
  }

  header nav {
    margin: 0;
    z-index: 3600;
  }

  .burger-menu {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    display: block;
    height: 4px;
    width: 30px;
    border-radius: 10px;
    background-color: #633d3c;
    position: relative;
  }

  .burger-menu:hover {
    cursor: pointer;
  }

  .burger-menu::after {
    height: 4px;
    width: 30px;
    border-radius: 10px;
    background-color: #633d3c;
    position: absolute;
    left: 0px;
    bottom: -8px;
    content: "";
  }

  .burger-menu::before {
    height: 4px;
    width: 30px;
    border-radius: 10px;
    background-color: #633d3c;
    position: absolute;
    left: 0px;
    top: -8px;
    content: "";
  }

  .burger-menu.clic {
    background-color: rgba(255, 255, 255, 0);
    transition-duration: 1s;
  }

  .burger-menu.clic::before {
    background-color: #633d3c;
    transform: translateY(8px) rotate(-45deg);
    transition-duration: 1s;
  }

  .burger-menu.clic::after {
    background-color: #633d3c;
    transform: translateY(-8px) rotate(45deg);
    transition-duration: 1s;
  }
}

/* Index */

.index {
  margin: 8.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 70vh;
}

#body_index .bas {
  position: inherit;
}

.defilement {
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2rem;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.defilement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 99%;
  background-color: #ffffff;
  border-left: 2px solid #633d3c;
  animation: typing 5s steps(12) infinite;
}

@keyframes typing {
  40%,
  60% {
    left: calc(100% + 0.5rem);
  }

  100% {
    left: 0%;
  }
}

#mon_portfolio {
  width: 37%;
}

.fleur {
  width: 6.5rem;
}

.fleur3 {
  position: absolute;
  right: 5rem;
  bottom: -2rem;
  transform: rotate(-15deg);
}

.fleur4 {
  position: absolute;
  left: 5rem;
  top: -4rem;
  transform: rotate(15deg);
}

.fleur3:hover {
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
}

.fleur4:hover {
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 768px) {
  .fleur {
    width: 5rem;
  }

  .fleur1 {
    display: none;
  }

  .fleur2 {
    display: none;
  }

  .index {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 10rem 0;
    height: auto;
  }

  #mon_portfolio {
    width: 37%;
  }

  .fleur3 {
    position: absolute;
    bottom: -7rem;
    right: 1rem;
  }

  .fleur4 {
    position: absolute;
    top: -7rem;
    left: 1rem;
  }
}

/* Projets */
.projets {
  margin: 3rem 4rem;
}

.projets h1,
.propos h1,
.contact_moi h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 2.2rem;
}

.projets .container {
  margin: 2.5rem auto;
}

.mes_projets,
.a_propos,
.contact_moi {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.mes_projets img,
.a_propos img,
.contact_moi img {
  width: 2rem;
  margin: 0 1rem;
}

.projets h3 {
  margin: 1.2rem 0;
}

.slider-wrapper {
  user-select: none;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  height: inherit;
  align-items: center;
  width: auto;
  /* Laisse Swiper ajuster automatiquement la largeur */
  height: auto;
  /* Ajuste la hauteur de manière proportionnelle */
}

.card-item {
  position: relative;
  width: 100%;
  /* Prend toute la largeur disponible */
  max-width: 400px;
  /* Limite la taille maximale en grand écran */
  aspect-ratio: 4 / 3;
  /* Assure un ratio fixe */
  border-radius: 2.5rem;
  /* Gardez vos bords arrondis */
  border: 3px solid #f26a6cd6;
  /* Bordure colorée */
  padding: 0.5rem;
  /* Espacement intérieur */
  background-color: #fff;
  /* Optionnel, si vous voulez un fond */
  overflow: hidden;
  /* Empêche les débordements */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.card-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2rem;
  padding: 0;
  /* Assurez-vous que l'image n'a pas de padding */
  margin: 0;
}

.card-hover {
  display: none;
  box-sizing: border-box;
}

.card-hover h4 {
  font-size: 1.2rem;
}

.card-hover p {
  font-size: 1rem;
}

.card-item:hover .card-hover {
  border-radius: 2.3rem;
  display: block;
  background-color: #f26a6cb9;
  color: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.2rem;
  box-sizing: border-box;
}

.slider-wrapper .swiper-pagination-bullet {
  background: #633d3c;
  height: 0.7rem;
  width: 0.7rem;
}

.slider-wrapper .swiper-slide-button {
  color: #ec82659d;
  user-select: none;
  margin-top: -50px;
}

.slider-wrapper .swiper-slide-button:hover {
  color: #ec8365;
}

#img_emmie {
  filter: brightness(1.4);
}

@media (max-width: 768px) {
  .slider-wrapper .swiper-slide-button {
    display: none;
  }

  .projets_titre hr {
    display: none;
  }

  .card-item:hover .card-hover {
    display: none;
  }
}

/* Détails Projets */

.details-projets {
  margin: 3rem 4rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.details-projets video {
  margin: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  width: 800px;
}

.details-projets iframe {
  margin: 1rem;
}

.details-projets img {
  margin: 1rem;
  height: 100%;
}

.grid_galerie {
  width: 60%;
  display: grid;
  grid-template-rows: repeat(2, 10rem);
  grid-template-areas:
    "img1 img2"
    "img1 img3";
  grid-gap: 1rem;
}

.grid_galerie img {
  width: 100%;
  object-fit: contain;
}

#img_1 {
  grid-area: img1;
  object-fit: cover;
}

#img_2 {
  grid-area: img2;
}

#img_3 {
  grid-area: img3;
}

.vitalia #img_1 {
  height: 90%;
  object-fit: contain;
  background-color: #437571;
}

.vitalia #img_2 {
  height: 90%;
}

.vitalia #img_3 {
  height: 90%;
  object-fit: contain;
}

#supernova {
  height: auto;
  width: 70%;
}

#twg_frame {
  margin-top: 2rem;
}

.grid_galerie#emmie {
  grid-template-areas:
    "img1 img2"
    "img1 img2";
  filter: brightness(1.4);
}

.arrow {
  text-decoration: none;
  color: #633d3c;
  align-self: flex-start;
  margin-bottom: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.arrow i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  color: #f26a6c;
}

.body-projects .bas {
  position: fixed;
  bottom: 0;
}

.body-projects_2 .bas {
  position: inherit;
}

@media (max-width: 768px) {
  .details-projets video {
    width: 300px;
  }

  .body-projects_2 .bas {
    position: absolute;
    bottom: 0;
  }

  .body-projects .bas {
    position: absolute;
    bottom: 0;
  }

  #bas_particulier {
    position: inherit;
  }

  #twg_frame {
    width: 100%;
    height: 100%;
  }

  .grid_galerie {
    display: block;
  }

  .vitalia {
    display: flex;
    width: fit-content;
    /* margin: 2rem; */
    /* padding: 0; */
    flex-direction: column;
    align-items: center;
  }

  .vitalia #img_2 {
    width: 50%;
    height: auto;
  }

  .vitalia #img_3 {
    width: 50%;
    height: auto;
  }
}

/* À propos */
.propos {
  margin: 3rem 4rem;
}

.propos h4 {
  color: #f26a6c;
  font-size: 1.75rem;
  text-transform: uppercase;
  text-align: center;
}

.infos_moi {
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.infos_moi img {
  width: 30%;
  border-radius: 6.25rem;
}

.paragraphe_info {
  padding: 2rem;
  font-size: 1.25rem;
  line-height: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.paragraphe_info a {
  margin: 1rem 0;
  color: #ffffff;
  text-decoration: none;
  background-color: #ec8365;
  border-radius: 1.4rem;
  padding: 0.5rem 2rem;
}

.paragraphe_info a:hover {
  color: #633d3c;
}

.competences {
  display: flex;
  justify-content: space-around;
  margin-bottom: 4.5rem;
}

.souscompet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compet_titre,
.projets_titre {
  display: flex;
  align-items: center;
}

.compet_titre hr,
.projets hr,
.details-projets hr {
  width: 1.3rem;
  border: solid 0.17rem #ec8365;
  margin: 0 1rem;
}

.competences h4 {
  color: #633d3c;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
}

.competences img {
  width: 5rem;
  filter: invert(22%) sepia(60%) saturate(347%) hue-rotate(315deg)
    brightness(65%) contrast(87%);
}

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

.devback .images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.5rem 4rem;
}

.design .images img {
  width: 4.5rem;
}

.competences img:hover {
  filter: brightness(0) saturate(100%) invert(56%) sepia(62%) saturate(478%)
    hue-rotate(324deg) brightness(98%) contrast(89%);
}

@media only screen and (max-width: 768px) {
  .infos_moi {
    flex-direction: column;
    padding: 1rem;
  }

  .infos_moi p {
    font-size: 0.8rem;
  }

  .propos h3 {
    text-align: center;
  }

  .competences {
    flex-direction: column;
  }

  .paragraphe_info a {
    font-size: 0.7rem;
    padding: 0.7rem 1rem;
    margin: 0;
    align-items: center;
  }

  .devfront {
    margin-bottom: 2rem;
  }

  .devback {
    margin-bottom: 2rem;
  }

  .paragraphe_info {
    width: 100%;
    align-items: center;
  }

  .paragraphe_info p {
    margin-bottom: 3rem;
    text-align: justify;
  }

  .infos_moi img {
    width: 60%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 70px;
  }

  .competences img {
    width: 3rem;
  }

  .design .images img {
    width: 3rem;
  }
}

/* Contact */

.contact {
  margin: 3rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

#block_formulaire {
  width: 60%;
}

#block_formulaire p {
  display: none;
}

#block_formulaire input {
  border-radius: 1.33944rem;
  border: 1.261px solid #ec8365;
  background: rgba(236, 131, 101, 0.12);
  padding: 0.5rem 1rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#block_NP {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  width: 100%;
}

#block_NP input {
  width: 50%;
}

#prenom {
  margin-left: 0.5rem;
}

#email {
  align-self: stretch;
}

#message {
  border-radius: 1.33944rem;
  border: 1.261px solid #ec8365;
  background: rgba(236, 131, 101, 0.12);
  align-self: stretch;
  margin-top: 1rem;
  padding: 1rem 1rem;
  resize: none;
}

#btnForm {
  border-radius: 1.3rem;
  background: #ec8365;
  border: none;
  color: #f9f2ed;
  padding: 0.7rem 1.5rem;
  margin: 1.5rem 0;
}

@media only screen and (max-width: 768px) {
  #block_formulaire {
    width: 100%;
  }
}

/* Footer */

footer {
  width: 100%;
  margin-top: 1rem;
  background-color: #f9f2ed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 0;
}

.bas {
  position: absolute;
  bottom: -5%;
}

#icons_footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

#icons_footer a {
  color: #f9f2ed;
  display: flex;
  text-decoration: none;
}

#icons_footer span {
  display: flex;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background-color: #f26a6c;
  justify-content: center;
  align-items: center;
  margin: 0.5rem;
}

#cv_footer {
  font-size: 0.9rem;
  color: #f9f2ed;
  font-weight: 600;
}

#copyright {
  margin: 0.5rem;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

@media only screen and (max-width: 768px) {
  .bas {
    position: inherit;
  }

  #body_index .bas {
    position: absolute;
    bottom: 0;
  }
}
