@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap");

/*! Variables */
:root {
  --primary-color: #81a687;
  --hover-primary-color: #809671;
  --secondary-color: #81a687;
  --text-color: #585c62;
  --third-color: #81a687;
  --text-light-color: white;
  --example: 1rem;
}

/*! Reset Css  */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

@media (min-width: 681px) {
  body,
  html {
    font-size: 17px;
  }
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

table {
  border-collapse: collapse;
}

/*! Typographie */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3 {
  line-height: 1;
  font-family: "Roboto Condensed", sans-serif;
}

p {
  color: var(--text-color);
  line-height: 1.6;
}

h1,
.h1 {
  font-size: 2.5rem;
}

h3,
.h3 {
  font-size: 1.4rem;
}

.h2 {
  font-size: 1.75rem;
}

/* Utilitaire */
.italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.8rem;
}

/* Spécifique */
.shop-title,
.contact .h1,
.h2 {
  color: var(--text-light-color);
}

.opening-time h3 {
  color: var(--text-light-color);
}

.opening-time p {
  color: var(--text-light-color);
}


.h3,
.menu a {
  color: var(--text-light-color);
}

.menu a:hover {
  color: var(--text-light-color);
  text-decoration: underline;
}


.h1,
.h3,
.menu a {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
}

.h3,
.contact .h2 {
  margin-bottom: 0.8rem;
}

.menu a {
  font-size: 1.75rem;
  line-height: 2.25rem;
  text-transform: uppercase;
  white-space: pre-line;
  transition: color 0.3s ease;
}


@media (min-width: 681px) {
  .opening-time h3 {
    font-size: 0.8rem;
  }
  .opening-time p {
    font-size: 0.7rem;
  }
}

@media (min-width: 951px) {
  h1,
  .h1 {
    font-size: 3.375rem;
  }

  h3,
  .h3 {
    font-size: 1.5rem;
  }

  .opening-time h3 {
    font-size: 1.5rem;
  }
  .opening-time p {
    font-size: 1rem;
  }
}

/*! Structure principale */
.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding: 2rem 0.8rem 3.2rem 0.8rem;
}

.content-grid,
.content-grid-header {
  display: grid;
  grid-gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}

.content-grid-header {
  margin-bottom: 0.8rem;
  grid-template-areas:
    "logo logo"
    "description description";
}

.content-grid {
  grid-template-areas:
    "opening-time opening-time"
    "shop foodOne"
    "maps maps"
    "contact contact"
    "menu menu"
    "foodTwo landscape"
    "value value"
    "quote quote";
}

@media (min-width: 681px) {
  .content-grid,
  .content-grid-header {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-grid-header {
    grid-template-areas:
      "logo logo description description"
      "logo logo description description";
  }

  .content-grid {
    grid-template-areas:
      "opening-time shop foodOne foodOne"
      "maps maps foodOne foodOne"
      "contact contact menu menu"
      "foodTwo foodTwo value value"
      "landscape landscape quote quote";
  }
}

@media (min-width: 951px) {
  .content-grid,
  .content-grid-header {
    grid-template-columns: repeat(4, 1fr);
  }

  .content-grid-header {
    margin-bottom: 0.8rem;
    grid-template-areas:
      "logo logo . ."
      "logo logo description  .";
  }

  .content-grid {
    grid-template-areas:
      "opening-time shop foodOne foodOne"
      ". maps foodOne foodOne"
      ". . contact contact"
      ". menu foodTwo value"
      "landscape quote . .";
  }
}

/*! Composants générique de la grille */
.square-item,
.rectangle-item,
.morph-item {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.square-item {
  aspect-ratio: 1 / 1;
}

.rectangle-item {
  aspect-ratio: 2 / 1;
}

.morph-item {
  aspect-ratio: 1 / 1;
}

@media (min-width: 681px) {
  .morph-item {
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 951px) {
  .morph-item {
    aspect-ratio: 1 / 1;
  }
}

.text-box {
  border: 5px solid var(--secondary-color);
}

/*! Composants perso grid */
.logo {
  grid-area: logo;
  background-image: url("../images/Logo-FondBeige.png");
  background-size: cover;
}

.description {
  grid-area: description;
  padding: 1rem;
}

.opening-time {
  grid-area: opening-time;
  background-color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.shop {
  grid-area: shop;
  background-image: url("../images/board.webp");
  background-size: cover;
}

.foodOne {
  grid-area: foodOne;
  background-image: url("../images/shop.webp");
  background-size: cover;
}

.maps {
  grid-area: maps;
}

.contact {
  grid-area: contact;
  background-color: var(--third-color);
  color: var(--text-light-color);
}

.menu {
  grid-area: menu;
  background-color: var(--secondary-color);
}

.foodTwo {
  grid-area: foodTwo;
  background-image: url("../images/cheesecake.webp");
  background-size: cover;
}

.value {
  grid-area: value;
  padding: 0.8rem 2rem 2rem 2rem;
}

.landscape {
  grid-area: landscape;
  background-image: url("../images/wedding.webp");
  background-size: cover;
}

.quote {
  grid-area: quote;
  padding: 2rem;
}

/*! Interactions */
.menu a:hover {
  color: var(--hover-primary-color);
}

.facebook:hover svg path,
.instagram:hover svg path {
  fill: var(--hover-primary-color);
}

/*! Footer */
footer {
  margin-top: 2.25rem;
  padding-top: 0.8rem;
  border-top-color: #b5b8bd;
  border-top-style: solid;
  border-top-width: 1px;
}

.footer-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

@media (min-width: 681px) {
  .footer-flex {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}
