/*CSS reset */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.3;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: pretty;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* Fonts */

@font-face {
    font-family: "brio-font";
    src: url('/assets/fonts/hamburg_brio.otf');
}


h1 {
  font-family: "brio-font", sans-serif;
  letter-spacing: 0.03em;
  font-size: min(6em, 10vw);
  line-height: 1em;
  padding-bottom: 0.5em;
}

h2 {
  font-family: "brio-font", sans-serif;
  letter-spacing: 0.03em;
  font-size: min(1.8em, 4vw);
}

h3 {
  font-family: "brio-font", sans-serif;
  letter-spacing: 0.03em;
  font-size: 1em;
}

a, h4, p, li {
  font-family: Arial, sans-serif;
  letter-spacing: 0.03em;
}

p {
  color: #4A2A11;
}

p, a, li {
  font-size: min(1.2em, 3.5vw);
}





/* Couleurs */
body {
  background-color: #ef4323;
  font-family: "brio-font", sans-serif;
}

a {
  color: #FEE4D4;
}

a:hover {
  color: #f0ff1e;
}

a:visited {
  color: #4A2A11;
}

.slogan h2 {
  color: #4A2A11;
}

.slogan h1 {
  color: #FEE4D4;
}

/* Étoiles background */
body {
  background-image: url('/assets/etoiles-large-gauche.svg'), url('/assets/etoiles-large-droit.svg');
  background-size: min(calc(50vw - 8rem), 402px), min(calc(50vw - 8rem), 402px);
  background-position: left top, top right;
  background-repeat: no-repeat;

  @media (max-width: 800px) {
    background-image: url('/assets/etoiles-mobile1.svg'), url('/assets/etoiles-mobile2.svg');
    background-size: min(50vw, 280px), min(50vw, 280px);
  }
}

/* Header */
#header {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 0 4em 2em;
  position: relative;

  @media (max-width: 800px) {
    padding: 2rem;
  }
}

#header img {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem 0 1rem
}

#badge {
  position:absolute;
  top: 7rem;
  right: -1rem;

  svg {
    height: 150px;
    width: 150px;
    animation:spin 12s linear infinite;
  }

  h3 {
    position: absolute;
    top: 35%;
    left: 35%;
    text-align: center;
    color: #FEE4D4;
  }

  @media (max-width: 860px) {
    top: 2rem;
  }

  @media (max-width: 550px) {
    display: none;
  }
}

#horaire-special {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: #FEE4D4;
  margin-top: 20px;
  border-radius: 12px;
}

#icon-avertissement {
  padding-right: 10px;
  width: 80px;
}

#avertissement p {
  color: #ef4323;
}

.container {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;

  @media (max-width: 42rem) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Contenu */
.home.container {
  max-width: 24rem;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  margin: 2rem auto 0;
  padding: 1rem;
  border: solid 1px black;

  font-family: "brio-font";
  color: black;
  text-transform: uppercase;
  text-decoration: none;

  transition: scale 0.1s ease-out;

  &:hover {
    scale: 1.05;
    color: black;
  }

  &:active {
    scale: 0.98;
  }

  .menu-image {
    max-width: 15vw;
  }
}

.slogan, #social, #email, #telephone, #adresse {
  text-align: center;
  margin: auto;
}


.slogan h2 {
  margin: auto;
  padding: 0.5em;
  border-bottom: 1px solid #4A2A11;
  border-top: 1px solid #4A2A11;
}

#horaire p, h2, h3, li {
  color: #FEE4D4;
}


#horaire {
  padding-top: 3em;
}

#horaire h2{
  text-align: center;
  padding-bottom: 10px;
}

.heures ul {
  padding: 0;
  list-style: none;
}

.heures ul li {
  display: flex;
  align-items: baseline;
}

.heures ul span {
  margin-right: auto;
}

.heures li + li {
  border-top: 1px solid #FEE4D4;


}

.heures li {
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}

#social {
  padding: 2em 0;
}

#social-icons {
  display: flex;
  justify-content: center;
  padding: 1em;
}

#social-icons img {
  padding-right: 8px;
  padding-left: 8px;
}

#social-icons img:hover {
  transform: scale(1.1);
}

#email {
  padding-top: 1em;
}

#adresse {
  padding-top: 1em;
}

/* Menu */

main.menu {
  section {
    margin-bottom: 2rem;
  }

  h1 {
    color: #EF4323;
    text-shadow: -1px -1px 0 #FEE4D4, 1px -1px 0 #FEE4D4,
      -1px 1px 0 #FEE4D4, 1px 1px 0 #FEE4D4;
    text-align: center;
    font-size: 4rem;
  }

  ul.section-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 3rem;


    li a {
      border: solid 1px #2A190B;
      color: #2A190B;
      display: block;
      padding: 0.25rem 0.75rem;
      text-transform: uppercase;
      text-decoration: none;
      font-size: min(4vw, 1.3rem);
      font-weight: bold;
      transition: scale 0.1s ease-out;

      &:hover {
        scale: 1.05;
      }

      &:active {
        scale: 1.02;
      }
    }
  }

  h2 {
    color: black;
    font-size: 1.5rem;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }

  h3 {
    text-transform: uppercase;
    border-top: solid 1px black;
    font-weight: normal;
    padding-top: 0.5rem;
    margin: 0.5rem 0;
    font-size: 1.4rem;
  }

  .drinks-list {
    list-style: none;
    padding: 0;

    li {
      border-bottom: dashed 1px color-mix(in srgb, transparent 80%, black);
      padding: .25rem 0;

      &:last-child {
        border-bottom: none;
      }
    }


    h4 {
      color: black;
      display: flex;
      font-weight: normal;
      justify-content: space-between;
      align-items: center;
    }

    .description {
      font-size: 0.85em;
    }

  }

  section.beers {
    background-color: #2A190B;
    color: white;
    padding: 3rem 0;

    h3 {
      border-top-color:  #ef4323;
      margin-top: 1rem;
      padding-top: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .strong-beer-icon {
        width: 1rem;
        max-width: 4vw;
      }
    }

    .prices {
      list-style: none;
      display: flex;
      justify-content: center;
      align-items: flex-end;
      flex-direction: row;
      gap: 1rem;
      margin-bottom: 2rem;
      padding: 0;

      text-transform: uppercase;

      .glass-size {
        text-align: center;
        font-size: 0.9rem;
        font-weight: bold;
        flex-basis: 120px;

        img {
          margin: 0 auto .75rem;
        }

        p {
          font-weight: bold;
          color: #FFE3D2;
          text-align: center;
          line-height: 1;
        }

        .price {
          color: #ef4323;
          font-weight: normal;
          display: block;
          text-align: center;
          padding-top: .5rem;
          flex: 1;
          margin: 0;
        }
      }
    }


    h2 {
      color: white;
    }

    h3 {
      position: relative;
      display: flex;
      flex-direction: row;
      justify-content: flex-start;

      .strong-beer-icon {
        margin-left: auto;
        max-height: 1.3rem;
      }

      .brewed-here-icon {
        position: absolute;
        margin-right: 0.6rem;
        right: 100%;

        @media (max-width: 32rem) {
          position: relative;
          right: auto;
        }
      }
    }

    .beer-description {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;

      span, p {
        color: #ef4323;

      }
    }

    .legend {
      list-style: none;
      padding: 1rem 0;
      margin: 1rem 0 0;
      border-top: 1px solid #ef4323;

      display: flex;
      flex-direction: row;
      justify-content: space-between;

      @media (max-width: 30rem) {
        flex-direction: column;
        align-items: flex-start;
      }

      li {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: .25rem;
        font-size: .875rem;

        .icon {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          margin-right: 0.4rem;
          width: 1.3rem;
        }
      }
    }
  }
}

/* Coordonnées */

.coordonnees {

  padding-top: 2em;
}


.coordonnees p {
    text-align: center;

}

.adresse .heures .email {
  padding-bottom: 2em;
}

.coordonnees li {
  list-style: none;
}

/* Menu */


/* Responsive */

@media (max-width: 1050px) {
      h1 {
        font-size: 2.7em;
      }

      h2 {
        font-size: 1.2em;
      }

  .slogan,
  #nom {
    padding-bottom: 0;
  }
}

@media (max-width: 490px) {
  #header img {
    max-width: 95%;
    padding-top: 3em;
  }
}
/* Fade in */

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-moz-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-o-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@-ms-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Rotation */

@-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); } }
