* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #000;
  background: #ffe7cd;
  font-family: Arial, sans-serif;
}

header {
  position: relative;
  padding: 112px 24px 72px;
  text-align: center;
  color: #000;
  background: #f18296;
}

.titre-site {
  position: relative;
  width: min(55vw, 380px);
  aspect-ratio: 578 / 266;
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
}

.logo-titre {
  position: absolute;
  top: -68.5%;
  left: -16.4%;
  width: 132.8%;
  max-width: none;
  height: auto;
}

.sous-titre-site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 16px;
  font-size: 0.9rem;
  font-family: "Lora", serif;
}

.coeur-logo {
  color: #ffe7cd;
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 480px) {
  header {
    padding-top: 94px;
  }

  .panier-bouton {
    top: 16px;
    right: 16px;
  }

  .sous-titre-site {
    gap: 8px;
    font-size: 0.8rem;
  }
}

h1 {
  margin: 0;
  font-size: 4rem;
}

main {
  width: 90%;
  max-width: 960px;
  margin: 64px auto;
}

h2 {
  text-align: center;
  font-size: 2.4rem;
}

article {
  max-width: 360px;
  margin: 36px auto;
  padding: 28px;
  text-align: center;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(49, 37, 31, 0.12);
}

button {
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #000;
  background: #a7463d;
  font-size: 16px;
  cursor: pointer;
}

.bouton-panier-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  background: #f18296;
  line-height: 1;
}

.bouton-panier-icon img {
  width: 30px;
  height: 30px;
  display: block;
  margin: auto;
}

footer {
  padding: 24px;
  text-align: center;
  color: #000;
  background: #f18296;
}

footer a {
  color: #000;
  font-size: 13px;
}

.mentions-legales {
  max-width: 560px;
  margin: 12px auto 0;
  padding: 10px 12px;
  color: #000;
  background: #f18296;
  text-align: left;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 10px 10px 0 0;
}

.mentions-legales h1 {
  margin-top: 0;
  color: #000;
  font-size: 1.4rem;
}

.page-mentions {
  max-width: 600px;
  margin: 40px auto;
}

.mentions-legales dl {
  margin: 6px 0;
}

.mentions-legales dt {
  margin-bottom: 6px;
  font-weight: bold;
}

.mentions-legales dd {
  margin: 2px 0;
}
.catalogue-categories {
  display: grid;
  gap: 44px;
}

.titre-categorie {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(167, 70, 61, 0.3);
  color: #7f3934;
  font-size: 1.55rem;
  text-align: left;
}

.produits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.photo-bijou {
  display: grid;
  width: 100%;
  height: 180px;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: #f6e7d9;
  font-size: 72px;
}

.prix {
  color: #000;
  font-size: 20px;
  font-weight: bold;
}
.photo-bijou img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.panier-bouton {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #000;
  background: #ffe7cd;
}

.panier-bouton img {
  width: 32px;
  height: 32px;
}

.compteur-panier {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #a7463d;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#panier {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  text-align: center;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(49, 37, 31, 0.12);
}

.total-panier {
  font-size: 20px;
  font-weight: bold;
}

#envoyer-commande {
  background: #f18296;
}

.menu-categories {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}

.bouton-menu-categories {
  display: flex;
  width: 48px;
  height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffe7cd;
}

.bouton-menu-categories span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #7f3934;
  transition: transform 180ms ease, opacity 180ms ease;
}

.bouton-menu-categories[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.bouton-menu-categories[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bouton-menu-categories[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.liens-categories {
  position: absolute;
  top: 56px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 136px;
  padding: 7px;
  border: 1px solid rgba(127, 57, 52, 0.2);
  border-radius: 28px;
  background: #ffe7cd;
  box-shadow: 0 6px 18px rgba(49, 37, 31, 0.14);
  animation: menu-categories-apparait 180ms ease-out;
}

.liens-categories[hidden] {
  display: none;
}

.liens-categories a {
  display: flex;
  min-width: 100px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #542c2b;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.liens-categories a:hover,
.liens-categories a:focus-visible {
  color: #fff;
  background: #a7463d;
}

@keyframes menu-categories-apparait {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-categorie {
  scroll-margin-top: 20px;
}

.categorie-vide {
  margin: 0;
  color: #665c58;
  font-family: "Lora", serif;
  font-size: 0.95rem;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 480px) {
  .menu-categories {
    top: 16px;
    left: 16px;
  }

  .liens-categories { top: 52px; }
}