@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,
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;
  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;
  }
}

/*------ DEBUT DE LA PAGE D'ACCUEIL ------*/
main {
  display: flex;
  flex-direction: column;
}
main h2 {
  font-size: clamp(30px, 4vw, 40px);
}

.flex {
  display: flex;
  justify-content: space-around;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
}

/* !-----------  VITRINE ------------- */
#vitrine img {
  width: 100%;
  position: relative;
}

.mob700 {
  display: none;
}

/* !-------- NOUVEAUTES --------- */
#nouveautes a {
  display: block;
}

#nouveautes img {
  width: 100%;
  height: 100%;
  margin: 20px 0;
  box-shadow: 0px 4px 10px #b17f4a;
}

#nouveautes h2 {
  color: black;
  text-align: center;
}

#nouveautes h2:hover {
  font-size: clamp(30px, 4vw, 42px);
}

/* !---------- GRANDE CATEGORIE --------- */
#grande-cat {
  height: 524px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

#grande-cat div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

#grande-cat .bijoux {
  background: url(../images/gde-cat/Bijoux.png) no-repeat center/cover;
}

#grande-cat .sacs {
  background: url(../images/gde-cat/sac.png) no-repeat center/cover;
}

#grande-cat .chaussures {
  background: url(../images/gde-cat/chaussures.png) no-repeat center/cover;
}

#grande-cat .robes {
  background: url(../images/gde-cat/robes-categorie.png) no-repeat center/cover;
}

#grande-cat h2 {
  color: white;
  text-shadow: 8px 8px 4px rgba(0, 0, 0, 0.25);
  padding: 80px;
}

#grande-cat h2:hover {
  transform: scale(1.05);
}

/* !--------- INTEMPORELS ---------- */
#intemporels a {
  display: block;
}

#intemporels img {
  box-shadow: 0px 4px 10px #b17f4a;
  margin: 20px 0;
  width: 100%;
  height: 100%;
}

#intemporels h2 {
  color: black;
  text-align: center;
}

#intemporels h2:hover {
  font-size: clamp(30px, 4vw, 42px);
}

/* !--------- PETITE CATEGORIE ------------ */
#petite-cat {
  height: 524px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

#petite-cat div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

#petite-cat .robes-blanches {
  background: url(../images/ptte-cat/robe-blanche.png) no-repeat center/cover;
}

#petite-cat .robes-denim {
  background: url(../images/ptte-cat/robe-denim\ 1.png) no-repeat center/cover;
}

#petite-cat .robes-fleurs {
  background: url(../images/ptte-cat/robe-fleurs\ 1.png) no-repeat center/cover;
}

#petite-cat .robes-longues {
  background: url(../images/ptte-cat/robe-a-pois\ 1.png) no-repeat center/cover;
}

#petite-cat h2 {
  color: white;
  text-shadow: 8px 8px 4px rgba(0, 0, 0, 0.25);
  padding: 80px;
}

#petite-cat h2:hover {
  transform: scale(1.05);
}

/* !--------- ENGAGEMENTS ----------- */
#engagements {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  gap: 50px;
}

#engagements a {
  color: black;
}

#engagements a:hover {
  color: gray;
}

#engagements .flex {
  flex-wrap: wrap;
  gap: 10px;
}

#engagements .icon a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#engagements figcaption {
  padding: 10px;
}

#engagements h1 {
  text-transform: uppercase;
  color: #b17f4a;
}

#engagements h1,
#engagements p {
  text-align: center;
}

/* !----- RESPONSIVE - PAGE ACCUEIL -------  */
@media screen and (max-width: 1100px) {
  #grande-cat h2 {
    padding: 50px 40px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  }
  #grande-cat .r h2 {
    padding: 50px 0;
  }
  #petite-cat h2 {
    padding: 50px 40px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  }
  #petite-cat .r h2 {
    padding: 50px 0;
  }
}

@media screen and (max-width: 1000px) {
  #grande-cat {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  #grande-cat .robes {
    background: url(../images/gde-cat/img-mob/media1000/robes-categorie.png)
      no-repeat center/cover;
  }
  #petite-cat {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }
  #petite-cat .robes-blanches {
    background: url(../images/ptte-cat/img-mob/media1000/robe-blanche.png)
      no-repeat center/cover;
  }
  #petite-cat .robes-denim {
    background: url(../images/ptte-cat/img-mob/media1000/robe-denim\ 1.png)
      no-repeat center/cover;
  }
  #petite-cat .robes-fleurs {
    background: url(../images/ptte-cat/img-mob/media1000/robe-fleurs\ 1.png)
      no-repeat center/cover;
  }
  #petite-cat .robes-longues {
    background: url(../images/ptte-cat/img-mob/media1000/robe-a-pois\ 1.png)
      no-repeat center/cover;
  }
}

@media screen and (max-width: 700px) {
  .pc1000 {
    display: none;
  }
  .mob700 {
    display: block;
  }
}

@media screen and (max-width: 800px) {
  #grande-cat {
    height: 500px;
  }
  #grande-cat .bijoux {
    background: url(../images/gde-cat/img-mob/Bijoux.png) no-repeat center/cover;
  }
  #grande-cat .sacs {
    background: url(../images/gde-cat/img-mob/sac.png) no-repeat center/cover;
  }
  #grande-cat .chaussures {
    background: url(../images/gde-cat/img-mob/chaussures.png) no-repeat
      center/cover;
  }
  #grande-cat .robes {
    background: url(../images/gde-cat/img-mob/robes-categorie.png) no-repeat
      center/cover;
  }
  #petite-cat {
    height: 500px;
    overflow: hidden;
  }
  #grande-cat h2,
  #grande-cat .r h2,
  #petite-cat .r h2 {
    padding: 40px 0;
  }
  #petite-cat {
    height: 500px;
  }
  #petite-cat .robes-blanches {
    background: url(../images/ptte-cat/img-mob/robe-blanche.png) no-repeat
      center/cover;
  }
  #petite-cat .robes-denim {
    background: url(../images/ptte-cat/img-mob/robe-denim\ 1.png) no-repeat
      center/cover;
  }
  #petite-cat .robes-fleurs {
    background: url(../images/ptte-cat/img-mob/robe-fleurs\ 1.png) no-repeat
      center/cover;
  }
  #petite-cat .robes-longues {
    background: url(../images/ptte-cat/img-mob/robe-a-pois\ 1.png) no-repeat
      center/cover;
  }
  .grid {
    display: flex;
    flex-direction: column;
  }
  .reverse {
    flex-direction: column-reverse;
  }

  #nouveautes h2,
  #intemporels h2 {
    margin: 20px 0;
  }
  #engagements .vs-mob {
    width: 50%;
  }
}
