@font-face {
  font-family: "Caslon";
  src: url(../fonts/Libre_Caslon_Text/LibreCaslonText-Regular.ttf);
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Caslon", serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  cursor: pointer;
  text-decoration: none;
}

main,
section,
header,
footer {
  max-width: 100%;
}

/* ASCENSEUR */
#scroll_to_top {
  position: fixed;
  bottom: 50px;
  right: 30px;
  z-index: 100;
}

/* ! HEADER ET FOOTER */
/*--------- HEADER --------*/
header {
  height: 90px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: white;
  box-shadow: 0px 0px 10px #b17f4a;
}

header .LOGO {
  position: relative;
  width: 130px;
}

header .picto img {
  height: 40px;
  margin: 15px;
}

header .picto {
  display: flex;
}

.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 70px;
}

.header-left h3 {
  color: black;
  font-size: 20px;
}

.header-left .promo {
  color: #b17f4a;
}

.header-right input {
  width: 150px;
  height: 40px;
  font-family: "Caslon", serif;
  font-size: 20px;
  color: black;
  border: none;
}

.header-right input:hover {
  border-bottom: 2px solid black;
  background: url(../images/Vector.png) no-repeat 95%;
}

/*----------------- MENU DEROULANT ----------------------*/
#topnav_menu {
  display: block;
  position: absolute;
  left: 0;
  top: 90px;
  margin: 0;
  max-width: 100%;
  z-index: 99;
  transform-origin: 0% 0%;
  transform: translate(-200%, 0);
  transition: transform 1s;
}

#topnav_menu.open {
  transform: none;
}

.grande-categorie-wrapper {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}

#topnav_menu .grande-categorie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.85);
  gap: 10px;
}

#topnav_menu ul {
  position: relative;
  padding: 0 80px;
  list-style-type: none;
}

#topnav_menu .grande-categorie li {
  padding: 10px;
  font-size: 20px;
}

#topnav_menu .grande-categorie li a {
  display: inline-block;
  margin-bottom: 10px;
}

#topnav_menu a {
  white-space: nowrap;
  color: black;
}

#topnav_menu a:hover {
  font-weight: 700;
}

#topnav_icon {
  user-select: none;
  -webkit-user-select: none;
}

/*----- Responsive header ------*/
.pc {
  display: block;
}

.mob {
  display: none;
}

@media screen and (max-width: 1100px) {
  .pc {
    display: none;
  }
  .mob {
    display: block;
  }
  .root a {
    display: none;
  }
  .responsive {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  #burger {
    height: 24px;
    width: 42px;
    cursor: pointer;
    position: relative;
    margin: 15px;
  }
  #burger span {
    width: 100%;
    height: 4px;
    background-color: #b17f4a;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.5s ease-in-out;
    border-radius: 15px;
  }
  #burger span::before,
  #burger span::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #b17f4a;
    transition: transform 0.5s ease-in-out;
    border-radius: 15px;
  }
  #burger span::before {
    transform: translateY(-10px);
  }
  #burger span::after {
    transform: translateY(10px);
  }
  #burger.active span {
    background-color: transparent;
  }
  #burger.active span::before {
    transform: translateY(0px) rotateZ(45deg);
  }
  #burger.active span::after {
    transform: translateY(0px) rotateZ(-45deg);
  }
  header .LOGO {
    padding-right: 30px;
  }
}

@media screen and (max-width: 766px) {
  header .picto a img {
    height: 30px;
    margin: 8px;
  }
  .grande-categorie-wrapper {
    width: 100vw;
  }
  #topnav_menu .grande-categorie {
    grid-template-columns: 1fr;
    grid-template-rows: repeat (4, auto);
    width: 100%;
    padding: 10px;
  }
  #topnav_menu ul li {
    line-height: 5px;
    font-size: 14px;
  }
  .petite-categorie {
    display: none;
  }
  .petite-categorie.open {
    display: block;
  }
}

/*-------------- FOOTER ----------------*/
footer {
  background-color: #ffdbb0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

footer .bloc {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .bloc > * {
  margin: 20px;
}

footer .bloc1,
footer .bloc2,
footer .bloc3 {
  text-align: center;
  margin: 15px;
}

footer h1 {
  font-size: 20px;
  margin-bottom: 15px;
}

footer li {
  list-style-type: none;
  line-height: 170%;
}

footer li a {
  color: black;
}

footer li a:visited {
  color: black;
}

footer li a:hover {
  color: brown;
}

footer .picto img {
  height: 30px;
}

footer .picto {
  display: flex;
  justify-content: center;
  width: 100%;
}

footer a {
  color: black;
  margin: 30px;
}

/* Responsive footer */
@media screen and (max-width: 600px) {
  footer .bloc {
    flex-direction: column;
  }
  footer .bloc h1 {
    font-size: 15px;
  }
}

/*------ RESTE DE LA PAGE SELECTION ------*/
.s1,
.s2,
.s3 {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
}

.vues {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vues img,
.mainPhoto img {
  box-shadow: 0px 4px 10px #b17f4a;
}

.vues-responsive-1000px {
  display: none;
}

#slider {
  position: relative;
  width: 582px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

#precedent,
#suivant {
  position: absolute;
  cursor: pointer;
}

#precedent {
  left: 0;
}

#suivant {
  right: 0;
}

.details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 406px;
}

.nomFav {
  display: flex;
  justify-content: space-between;
  font-size: 25px;
  margin-bottom: 20px;
}

.nom span {
  font-size: 40px;
  color: #b17f4a;
}

#coeur {
  width: 27px;
  height: 25px;
  background: url(../images/selection/coeur\ favori\ 1.png) no-repeat
    center/cover;
}

#coeur.active {
  width: 28px;
  height: 25px;
  background: url(../images/selection/coeur\ favori\ 2.png) no-repeat
    center/cover;
}

.nomFav span {
  font-size: 40px;
}

.prix {
  margin-bottom: 20px;
  font-size: 40px;
}

.livraison {
  margin-bottom: 64px;
  font-size: 25px;
}

.livraison a {
  color: black;
}

.livraison a:hover {
  color: #b17f4a;
}

.couleur {
  margin-bottom: 50px;
  font-size: 25px;
}

.couleur span {
  color: #b17f4a;
  font-size: 32px;
}

.robes {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 30px;
}

.boutons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

select {
  background: white;
  color: #b17f4a;
  padding: 10px;
}

.panier,
select {
  font-family: "Caslon";
  font-weight: bold;
  font-size: 25px;
  text-align: center;
  width: 400px;
  height: 70px;
  box-shadow: 0px 4px 10px #b17f4a;
  border: none;
}

select .t,
select .t0 {
  color: black;
  font-weight: normal;
  font-size: 22px;
}

.panier {
  color: white;
  background: #efbb7e;
  padding: 5px;
}

.panier:hover {
  color: #b17f4a;
  box-shadow: 2px 6px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.s2 {
  display: flex;
  justify-content: space-around;
}

.description {
  text-align: left;
  font-size: 20px;
  background: #f3ede3;
  width: 360px;
  height: 525px;
  line-height: 30px;
  padding: 15px;
}

.container h3 {
  color: #b17f4a;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

ul {
  margin-left: 20px;
  line-height: 40px;
}

.p1 {
  margin-bottom: 20px;
}

.s2 .coupes {
  line-height: 25px;
}

.coupes p {
  margin-bottom: 18px;
}

h2 {
  font-size: 50px;
  font-weight: bold;
  margin-left: 20px;
  margin-bottom: 40px;
}

.s3 {
  display: flex;
  justify-content: space-around;
}

.s3-a {
  display: block;
}

.boucles,
.chaussures,
.bague {
  width: 354px;
  height: 354px;
}

.boucles {
  background: url(../images/selection/boucles.png) no-repeat center/cover;
}

.chaussures {
  background: url(../images/selection/chaussures.png) no-repeat center/cover;
}

.bague {
  background: url(../images/selection/bague.png) no-repeat center/cover;
}

.hover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: space-around;
  padding: 20px;
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s ease;
  background: rgba(255, 255, 255, 0.7);
}

.hover:hover {
  opacity: 1;
}

.hover a {
  color: black;
}

.p4 a:hover {
  color: #b17f4a;
}

.p4 span:hover {
  color: black;
}

.p6 a:hover {
  color: #b17f4a;
}

.p2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.p2,
.p3 {
  font-weight: bold;
}

.p3,
.p4,
.p5,
.p6 {
  font-size: 20px;
  margin-bottom: 20px;
}

/*************** Media queries ***************/
@media screen and (max-width: 600px) {
  #slider,
  #slide {
    width: 300px;
  }
}

@media screen and (max-width: 766px) {
  h2 {
    font-size: 30px;
    margin-left: 0;
    text-align: center;
    margin-bottom: 0;
  }
  .nom span {
    font-size: 30px;
  }
  .nom,
  .couleur,
  .couleur span,
  select,
  form {
    font-size: 22px;
  }
  .prix {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .livraison {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .description {
    max-width: 100%;
  }
  .boucles,
  .chaussures,
  .bague {
    width: 100%;
  }
}

@media screen and (min-width: 767px) and (max-width: 1129px) {
  .description {
    width: 60%;
  }
}

@media screen and (max-width: 1130px) {
  .s1,
  .s2,
  .s3 {
    flex-direction: column;
    align-items: center;
    width: 100vw;
    height: auto;
    text-align: center;
    padding: 20px;
    margin: 0px 0;
    gap: 20px;
  }
  .vues {
    display: none;
  }
  .nomFav {
    text-align: center;
  }
  .details {
    width: 100%;
    align-items: center;
  }
  .nom,
  .couleur {
    margin-bottom: 10px;
  }
  .description {
    height: auto;
  }
  select,
  form,
  .panier {
    width: 100%;
  }
  h2 {
    text-align: center;
    margin-bottom: 0;
  }
}
