@import url("https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300..900&family=Hind:wght@300;400;500;600;700&family=Sumana:wght@400;700&display=swap");

html {
  scroll-behavior: smooth !important;
}

body {
  background-color: #23253a;
  color: #fff !important;
}

h1 {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 48px;
  font-weight: 300;
}

h2 {
  font-family: "Sumana", serif;
  font-size: 36px;
  font-weight: bold;
  color: #fe4b57 !important;
}

.btn-modif {
  width: 150px;
  background-color: #fe4b57 !important;
  border: #fe4b57;
  border-radius: 15px;
  font-family: "Sumana", serif;
  font-size: 20px;
  font-weight: bold;
  padding: 0.2cm;
  transition: 0.25s;
}

.btn-modif:hover {
  background-color: #fff !important;
  color: #000 !important;
}

.sumana {
  font-family: "Sumana", serif;
  font-size: 20px;
}
/* HEADER */

header a:hover {
  color: #fe4b57 !important;
}

.navbar-toggler {
  border-color: #fff !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.div-droite {
  display: flex;
  justify-content: center;
  align-items: end;
}

/* SECTION ACCUEIL */

#section-accueil {
  min-height: 25vh;
}

.titre-h1-accueil {
  color: #fe4b57;
  font-weight: bold;
}

/* SECTION ABOUT */

.img-about {
  width: 500px;
  aspect-ratio: 1/1;
  padding-left: 5%;
}

#section-about img {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  object-fit: cover;
}

/* SECTION EXPÉRIENCE */

.container-experience {
  height: 75vh;
}

.logo-texte {
  width: 140px;
  height: 140px;
}

/* SECTION PORTFOLIO */

.text-port {
  margin-bottom: 5%;
}

.container-projet {
  width: 100%;
  padding: 0 5%;
}

.container-projet h2 {
  color: #fe4b57 !important;
  font-size: 24px;
  font-weight: bold;
}

.container-projet h3 {
  font-size: 24px;
  font-weight: 300 !important;
  padding-bottom: 2%;
  font-family: "Hind", sans-serif;
}

.container-projet p {
  font-family: "Hind", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.carousel-control-prev,         /* Pour changer la couleur des arrows du carrousel */
.carousel-control-next {
  filter: invert(100%);
}

.hauteur-portfolio {
  height: 450px !important;
}

#section-portfolio img {
  object-fit: cover;
}

/* SECTION CONTACT */

#section-contact {
  min-height: 75vh;
}

#section-contact h2 {
  margin: 0 5% 0 5%;
}

.form {
  gap: 15px;
  margin: 0 5% 0 5%;
}

input[type="checkbox"]:checked {
  background-color: #fe4b57;
  border-color: #fe4b57;
}

/* permets de changer la couleur "autour" de la checkbox lorsqu'elle est en focus (pas forcément checked) */
input[type="checkbox"]:focus {
  border-color: #fe4b57;
  box-shadow: 0 0 0 0.25rem rgba(254, 75, 87, 0.25) !important;
}

/* BOUTON REMONTER */

.haut-page {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  display: inline-flex;
  justify-content: center;
  background-color: #fe4b57;
  border-radius: 15px;
  padding: 0.5rem;
  text-decoration: none;
}

.haut-page i:hover {
  transform: translateY(-4px);
}

.haut-page i {
  color: #fff;
}

/* FOOTER */

footer a:hover {
  color: #fe4b57 !important;
}

.btn-footer {
  background-color: #fe4b57;
  color: #fff;
  font-weight: bold;
  min-width: 320px;
}

/* RESPONSIVE */

@media screen and (max-width: 1250px) {
  /* SECTION ACCUEIL */
  #section-accueil h1 {
    padding: none;
  }

  /* SECTION ABOUT */

  #section-about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
  }

  #section-about img {
    width: 400px;
    height: 400px;
  }

  .img-about {
    width: 400px;
    padding-left: 0;
    display: flex;
    justify-content: center;
  }

  .contenu-about {
    width: 80%;
    padding-right: 0;
    text-align: center;
    gap: 1.5rem;
  }

  .haut-page {
    position: fixed;
    bottom: 0.5rem;
    right: 0.2rem;
  }
}

@media screen and (max-width: 900px) {
  /* SECTION ACCUEIL */
  #section-accueil h1 {
    padding: none;
  }
  /* SECTION PORTFOLIO */
  .container-projet {
    padding: 0 2%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container-projet .col-xl-6 {
    max-width: 90%;
    margin-bottom: 2rem;
  }

  /* SECTION CONTACT */
  .form {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 700px) {
  /* HEADER */
  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Correction du centrage du burger menu */
  .navbar {
    width: 100%;
    justify-content: center;
  }

  .navbar-toggler {
    margin: 0 auto;
  }

  .navbar-collapse {
    text-align: center;
  }

  .div-droite {
    justify-content: center;
  }

  /* SECTION ACCUEIL */
  #section-accueil {
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
  }

  #section-accueil h1 {
    padding: none;
    font-size: 36px;
  }

  /* SECTION ABOUT */
  #section-about {
    min-height: auto;
    padding: 3rem 0;
    gap: 2rem;
  }

  #section-about img {
    width: 280px;
    height: 280px;
  }

  .img-about {
    width: 280px;
  }

  .contenu-about {
    width: 90%;
    gap: 1rem;
  }

  .contenu-about h2 {
    font-size: 28px;
    margin-bottom: 1rem;
  }

  .contenu-about p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  /* SECTION EXPÉRIENCE */
  #section-experience {
    min-height: auto;
    padding: 3rem 0;
  }

  .container-experience {
    height: auto;
    gap: 3rem;
  }

  .ligne-exp {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .logo-texte {
    width: 100px;
    height: 100px;
  }

  .logo-texte p {
    font-size: 14px;
  }

  /* SECTION PORTFOLIO */
  #section-portfolio {
    min-height: auto;
    padding: 3rem 0;
  }

  .text-port h2 {
    font-size: 28px;
  }

  .container-projet {
    padding: 0;
    max-width: 95%;
    margin: 0 auto;
  }

  .container-projet .col-xl-6 {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  /* Hauteur fixe adaptée pour mobile */
  .container-projet h2 {
    font-size: 20px;
  }

  .container-projet h3 {
    font-size: 18px;
  }

  .container-projet p {
    font-size: 14px;
  }

  /* SECTION CONTACT */
  #section-contact {
    min-height: auto;
    padding: 3rem 0;
  }

  #section-contact h2 {
    font-size: 28px;
    margin-bottom: 2rem;
    text-align: center;
  }

  .form {
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
  }

  .btn-modif {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  /* FOOTER */
  footer ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  footer .nav-item {
    margin: 0.25rem;
  }

  footer p {
    font-size: 14px;
  }

  /* BOUTON REMONTER */
  .haut-page {
    bottom: 5rem;
    right: 1rem;
    padding: 0.4rem;
  }

  /* AJUSTEMENTS GÉNÉRAUX */
  h2 {
    font-size: 28px;
  }

  .sumana {
    font-size: 16px;
  }

  .btn-modif {
    font-size: 16px;
    width: 120px;
  }
}
