html, body {
  margin: 0;
  padding: 0;
}

.bonbon-regular {
  font-family: "Bonbon", cursive;
  font-weight: 400;
  font-style: normal;
}

.quicksand {
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.codystar-regular {
  font-family: "Codystar", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.edu-au-vic-wa-nt-dots {
  font-family: "Edu AU VIC WA NT Dots", cursive;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  background-color: #fdf2d9;
}

/* --------------------------------------DESKTOP------------------------------- */
@media (min-width: 992px) {
  /* ============================================Header=================================== */
  header {
    position: sticky;
    top: 0;
    scroll-behavior: smooth;
    z-index: 1;
    margin-top: -33px;
  }

  header h1 {
    font-size: 4em;
    color: #c5344c;
  }

  header img {
    max-width: 100px;
  }

  .rayuresHaut {
    width: 100%;
    height: 170px;
    padding-bottom: 20px;
    background: repeating-linear-gradient(
      to right,
      #fffce0,
      #fffce0 100px,
      #ffaebb 100px,
      #ffaebb 200px
    );
    mask:
      linear-gradient(0, #0000 50px, #000 0),
      radial-gradient(50px, #000 calc(100% - 1px), #0000) bottom/92.5px 100px;

    box-shadow: black 0px 0px 10px;
  }

  #menu {
    display: grid;
    grid-template-columns: 0.5fr 4fr 2fr;
    align-items: center;
    max-width: 98%;
    padding-left: 20px;
    padding-right: 13px;
  }

  header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
  }

  header a {
    color: #714b32;
    font-weight: 600;
    font-size: 22px;
    margin-right: 20px;
  }

  /* ============================================Main=================================== */
  main {
    padding-top: 150px;
  }

  .ruban {
    font-size: 6em;
    font-weight: 550;
    color: #c5344c;

    --s: 2em; /* taille */
    --d: 0.8em; /* profondeur */
    --c: 0.8em; /* partie flippée */

    padding: 0 calc(var(--s) + 0.5em) var(--d);
    line-height: 1.8;
    background:
      conic-gradient(
          at left var(--s) bottom var(--d),
          #0000 25%,
          #0008 0 37.5%,
          #0004 0
        )
        0 /50% 100% no-repeat,
      conic-gradient(
          at right var(--s) bottom var(--d),
          #0004 62.5%,
          #0008 0 75%,
          #0000 0
        )
        100%/50% 100% no-repeat;
    clip-path: polygon(
      0 var(--d),
      var(--s) var(--d),
      var(--s) 0,
      calc(100% - var(--s)) 0,
      calc(100% - var(--s)) var(--d),
      100% var(--d),
      calc(100% - var(--c)) calc(50% + var(--d) / 2),
      100% 100%,
      calc(100% - var(--s) - var(--d)) 100%,
      calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
      calc(var(--s) + var(--d)) calc(100% - var(--d)),
      calc(var(--s) + var(--d)) 100%,
      0 100%,
      var(--c) calc(50% + var(--d) / 2)
    );
    background-color: #fec4d9;
    width: fit-content;
  }

  .containerGros {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 200px;
  }

  .containerAccueil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }

  /* ====================================Histoire du gâteau================================ */
  #histoire {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 150px;
  }

  #histoire h1 {
    font-size: 5em;
    color: #8b5f42;
  }

  #histoire p {
    font-size: 1.5em;
    color: #8b5f42;
  }

  #petitFraise {
    max-width: 300px;
    margin-left: 900px;
    margin-top: -70px;
    transform: rotate(-10deg);
  }

  #tarteFraise {
    max-width: 300px;
    margin-left: 1200px;
    margin-top: -200px;
    transform: rotate(15deg);
  }

  /* ========================================================Le gâteau d'anniversaire============================== */
  #anni {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 150px;
    margin-top: -50px;
  }

  #anni h1 {
    font-size: 5em;
    color: #8b5f42;
  }

  #anni p {
    font-size: 1.5em;
    color: #8b5f42;
  }

  #anni img {
    max-width: 500px;
  }

  #anniSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .anniP {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
  }
  /* ========================================Types de gâteaux=============================== */

  #types {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 250px;
  }

  #types h1 {
    font-size: 5em;
    color: #8b5f42;
  }

  #types h2 {
    text-align: center;
    font-size: 2.5em;
  }

  .carottes {
    color: darkorange;
  }

  .redV {
    color: #bd1531;
  }

  .cFraises {
    color: #fcafcb;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  /* =========================================Cercle de progres============================ */
  .progres-cercle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progres-cercle {
    width: 100px;
    height: 100px;
  }

  .progres-cercle-bar {
    fill: none;
    stroke: #e55397;
    stroke-width: 5;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transform-origin: center;
    transition: stroke-dashoffset 0.3s ease;
  }

  .progres-background {
    fill: transparent;
    stroke: #ededed;
    stroke-width: 6;
    stroke-dasharray: none;
  }

  .scroll-haut {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #c5344c;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
  }

  .scroll-haut svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: white;
    transition: all 0.1s ease;
  }

  /* =================================Footer=============================== */
  .rayuresBas {
    width: 100%;
    height: 209px;
    padding-bottom: 150px;
    background: repeating-linear-gradient(
      to right,
      #fffce0,
      #fffce0 100px,
      #ffaebb 100px,
      #ffaebb 200px
    );
    mask:
      linear-gradient(180deg, #0000 50px, #000 0),
      radial-gradient(50px, #000 calc(100% - 1px), #0000) top/92.5px 100px;
  }

  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 500px;
  }

  footer img {
    max-width: 250px;
    margin-top: 150px;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
  }

  footer a {
    display: flex;
    flex-direction: row;
    color: #714b32;
    font-weight: 600;
    font-size: 22px;
  }

  footer nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
    margin-top: 150px;
  }

  #contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
    gap: 20px;
  }

  #contacts h3 {
    font-size: 2em;
    font-weight: 550;
    color: #8b5f42;
  }

  #icones {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}

/*---------------------------------------------------TABLETTE-----------------  */

@media (min-width: 576px) and (max-width: 991px) {
  /* ========================================Header=========================== */
  header {
    position: sticky;
    top: 0;
    scroll-behavior: smooth;
    z-index: 1;
  }

  header h1 {
    font-size: 3.5em;
    color: #c5344c;
  }

  header img {
    max-width: 100px;
  }

  .rayuresHaut {
    width: 100%;
    height: 150px;
    padding-bottom: 20px;
    background: repeating-linear-gradient(
      to right,
      #fffce0,
      #fffce0 100px,
      #ffaebb 100px,
      #ffaebb 200px
    );
    mask:
      linear-gradient(0, #0000 50px, #000 0),
      radial-gradient(50px, #000 calc(100% - 1px), #0000) bottom/92.5px 100px;

    box-shadow: black 0px 0px 10px;
  }

  #menu {
    display: grid;
    grid-template-columns: 1fr 4fr 2fr;
    align-items: center;
    max-width: 98%;
    padding-left: 20px;
    padding-right: 13px;
  }

  header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    text-align: center;
  }

  header a {
    color: #714b32;
    font-weight: 600;
    font-size: 22px;
    margin-right: 20px;
  }

  /* ============================================Main=================================== */
  main {
    padding-top: 100px;
  }

  .ruban {
    font-size: 5em;
    font-weight: 550;
    color: #c5344c;

    --s: 1em; /* taille */
    --d: 0.8em; /* profondeur */
    --c: 0.7em; /* partie flippée */

    padding: 0 calc(var(--s) + 0.5em) var(--d);
    line-height: 1.8;
    background:
      conic-gradient(
          at left var(--s) bottom var(--d),
          #0000 25%,
          #0008 0 37.5%,
          #0004 0
        )
        0 /50% 100% no-repeat,
      conic-gradient(
          at right var(--s) bottom var(--d),
          #0004 62.5%,
          #0008 0 75%,
          #0000 0
        )
        100%/50% 100% no-repeat;
    clip-path: polygon(
      0 var(--d),
      var(--s) var(--d),
      var(--s) 0,
      calc(100% - var(--s)) 0,
      calc(100% - var(--s)) var(--d),
      100% var(--d),
      calc(100% - var(--c)) calc(50% + var(--d) / 2),
      100% 100%,
      calc(100% - var(--s) - var(--d)) 100%,
      calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
      calc(var(--s) + var(--d)) calc(100% - var(--d)),
      calc(var(--s) + var(--d)) 100%,
      0 100%,
      var(--c) calc(50% + var(--d) / 2)
    );
    background-color: #fec4d9;
    width: 50%;
  }

  .containerGros {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 200px;
  }

  .containerAccueil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  /* ====================================Histoire du gâteau================================ */
  #histoire {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 70%;
    gap: 50px;
    margin: 150px;
  }

  #histoire h1 {
    text-align: center;
    font-size: 5em;
    color: #8b5f42;
  }

  #histoire p {
    font-size: 1.5em;
    color: #8b5f42;
  }

  #petitFraise {
    max-width: 250px;
    margin-left: 500px;
    margin-top: -50px;
    transform: rotate(-10deg);
  }

  #tarteFraise {
    max-width: 250px;
    margin-left: 600px;
    margin-top: -150px;
    transform: rotate(15deg);
  }

  /* ========================================================Le gâteau d'anniversaire============================== */
  #anni {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 150px;
    margin-top: -50px;
  }

  #anni h1 {
    font-size: 5em;
    color: #8b5f42;
    text-align: center;
  }

  #anni p {
    font-size: 1.5em;
    color: #8b5f42;
  }

  #anni img {
    max-width: 500px;
  }

  #anniSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .anniP {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
  }
  /* ========================================Types de gâteaux=============================== */

  #types {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 250px;
  }

  #types h1 {
    font-size: 5em;
    color: #8b5f42;
  }

  #types h2 {
    text-align: center;
    font-size: 2.5em;
  }

  .carottes {
    color: darkorange;
  }

  .redV {
    color: #bd1531;
  }

  .cFraises {
    color: #fcafcb;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  /* =========================================Cercle de progres============================ */
  .progres-cercle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progres-cercle {
    width: 80px;
    height: 80px;
  }

  .progres-cercle-bar {
    fill: none;
    stroke: #e55397;
    stroke-width: 5;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transform-origin: center;
    transition: stroke-dashoffset 0.3s ease;
  }

  .progres-background {
    fill: transparent;
    stroke: #ededed;
    stroke-width: 5;
    stroke-dasharray: none;
  }

  .scroll-haut {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #c5344c;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
  }

  .scroll-haut svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: white;
    transition: all 0.1s ease;
  }

  /* =================================Footer=============================== */
  .rayuresBas {
    max-width: 100%;
    padding-bottom: 100px;
    background: repeating-linear-gradient(
      to right,
      #fffce0,
      #fffce0 100px,
      #ffaebb 100px,
      #ffaebb 200px
    );
    mask:
      linear-gradient(180deg, #0000 50px, #000 0),
      radial-gradient(50px, #000 calc(100% - 1px), #0000) top/92.5px 100px;
  }

  footer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 300px;
  }

  footer img {
    max-width: 210px;
    margin-top: 150px;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
  }

  footer a {
    display: flex;
    flex-direction: row;
    color: #714b32;
    font-weight: 600;
    font-size: 22px;
  }

  footer nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
    margin-top: 150px;
  }

  #contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
    gap: 20px;
  }

  #contacts h3 {
    font-size: 2em;
    font-weight: 550;
    color: #8b5f42;
  }

  #icones {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }
}

/* ---------------------------------------------MOBILE------------------------------- */
@media (max-width: 575px) {
   /* ========================================Header=========================== */
  header {
    position: sticky;
    top: 0;
    scroll-behavior: smooth;
    z-index: 1;
  }

  header h1 {
    font-size: 3em;
    color: #c5344c;
  }

  header img {
    max-width: 70px;
  }

  .rayuresHaut {
    width: 100%;
    height: 235px;
    background: repeating-linear-gradient(
      to right,
      #fffce0,
      #fffce0 100px,
      #ffaebb 100px,
      #ffaebb 200px
    );
    mask:
      linear-gradient(0, #0000 50px, #000 0),
      radial-gradient(50px, #000 calc(100% - 1px), #0000) bottom/92.5px 100px;

    box-shadow: black 0px 0px 10px;
  }

  #menu {
    display: grid;
    grid-template-columns: 1fr 3.5fr 1fr;
    align-items: center;
    max-width: 98%;
    padding-left: 20px;
    padding-right: 13px;
  }

  header nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  header a {
    color: #714b32;
    font-weight: 600;
    font-size: 20px;
    margin-right: 20px;
  }

  /* ============================================Main=================================== */
  main {
    padding-top: 100px;
  }

  .ruban {
    font-size: 4em;
    font-weight: 550;
    color: #c5344c;

    --s: 1em; /* taille */
    --d: 0.8em; /* profondeur */
    --c: 0.7em; /* partie flippée */

    padding: 0 calc(var(--s) + 0.5em) var(--d);
    line-height: 1.8;
    background:
      conic-gradient(
          at left var(--s) bottom var(--d),
          #0000 25%,
          #0008 0 37.5%,
          #0004 0
        )
        0 /50% 100% no-repeat,
      conic-gradient(
          at right var(--s) bottom var(--d),
          #0004 62.5%,
          #0008 0 75%,
          #0000 0
        )
        100%/50% 100% no-repeat;
    clip-path: polygon(
      0 var(--d),
      var(--s) var(--d),
      var(--s) 0,
      calc(100% - var(--s)) 0,
      calc(100% - var(--s)) var(--d),
      100% var(--d),
      calc(100% - var(--c)) calc(50% + var(--d) / 2),
      100% 100%,
      calc(100% - var(--s) - var(--d)) 100%,
      calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
      calc(var(--s) + var(--d)) calc(100% - var(--d)),
      calc(var(--s) + var(--d)) 100%,
      0 100%,
      var(--c) calc(50% + var(--d) / 2)
    );
    background-color: #fec4d9;
    width: 50%;
  }

  .containerGros {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 200px;
  }

  .containerAccueil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 50px;
  }

  .containerAccueil img {
    max-width: 500px;
  }

  /* ====================================Histoire du gâteau================================ */
  #histoire {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 70%;
    gap: 50px;
    margin: 150px;
  }

  #histoire h1 {
    text-align: center;
    font-size: 4.5em;
    color: #8b5f42;
  }

  #histoire p {
    font-size: 1.5em;
    color: #8b5f42;
  }

  #petitFraise {
    max-width: 250px;
    margin-top: -20px;
    transform: rotate(-10deg);
  }

  #tarteFraise {
    max-width: 250px;
    margin-top: -130px;
    transform: rotate(15deg);
  }

  /* ========================================================Le gâteau d'anniversaire============================== */
  #anni {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 150px;
    margin-top: -50px;
  }

  #anni h1 {
    font-size: 4.5em;
    color: #8b5f42;
    text-align: center;
  }

  #anni p {
    font-size: 1.5em;
    color: #8b5f42;
  }

  #anni img {
    max-width: 450px;
  }

  #anniSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .anniP {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
  }
  /* ========================================Types de gâteaux=============================== */

  #types {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 250px;
  }

  #types img{
    max-width: 450px;
  }

  #types h1 {
    text-align: center;
    font-size: 4.5em;
    color: #8b5f42;
  }

  #types h2 {
    text-align: center;
    font-size: 2em;
  }

  .carottes {
    color: darkorange;
  }

  .redV {
    color: #bd1531;
  }

  .cFraises {
    color: #fcafcb;
  }

  .gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  /* =========================================Cercle de progres============================ */
  .progres-cercle-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .progres-cercle {
    width: 80px;
    height: 80px;
  }

  .progres-cercle-bar {
    fill: none;
    stroke: #e55397;
    stroke-width: 5;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transform-origin: center;
    transition: stroke-dashoffset 0.3s ease;
  }

  .progres-background {
    fill: transparent;
    stroke: #ededed;
    stroke-width: 5;
    stroke-dasharray: none;
  }

  .scroll-haut {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #c5344c;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
  }

  .scroll-haut svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: white;
    transition: all 0.1s ease;
  }

  /* =================================Footer=============================== */
  .rayuresBas {
    max-width: 100%;
    padding-bottom: 150px;
    background: repeating-linear-gradient(
      to right,
      #fffce0,
      #fffce0 100px,
      #ffaebb 100px,
      #ffaebb 200px
    );
    mask:
      linear-gradient(180deg, #0000 50px, #000 0),
      radial-gradient(50px, #000 calc(100% - 1px), #0000) top/92.5px 100px;
  }

  footer {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin-top: 300px;
  }

  footer img {
    max-width: 230px;
    margin-top: 150px;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
  }

  footer a {
    display: flex;
    flex-direction: column;
    color: #714b32;
    font-weight: 600;
    font-size: 22px;
  }

  footer nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    gap: 30px;
    margin-top: 150px;
  }

  #contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 150px;
    gap: 20px;
  }

  #contacts h3 {
    font-size: 3em;
    font-weight: 550;
    color: #8b5f42;
  }

  #icones {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
