/* =========================================================
   MENU — fond blanc, objets-boutons animés au survol
   Option A : seul l'objet survolé bouge.
   - tasse  -> rotation continue (touillage)
   - coeur & biscuit -> petite oscillation (dandinement)
   ========================================================= */
:root {
  --blanc: #ffffff;
  --noir: #111111;
  --texte-2: #777777;
  --ombre: rgba(0, 0, 0, 0.18);
  --calligraphie: 'Rakkas', 'Grenze Gotisch', serif;
  --titre: 'Gabarito', sans-serif;
  --corps: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--blanc);
  color: var(--noir);
  font-family: var(--corps);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* Phrase en calligraphie */
.phrase {
  font-family: var(--calligraphie);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 58px);
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
  line-height: 1.15;
}

/* =========================================================
   LES TROIS OBJETS
   ========================================================= */
.menu-objets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 64px);
  width: 100%;
}

.item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(230px, 68vw);
  transition: transform 0.3s ease;
}
/* léger soulèvement de tout l'objet au survol */
.item:hover, .item:focus-visible { transform: translateY(-6px); outline: none; }

.obj-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.obj {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 50%;         /* pivote autour de son centre */
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.12));
}

/* Légende sous chaque objet */
.legende {
  font-family: var(--titre);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-2);
  transition: color 0.3s ease;
  text-align: center;
}
.item:hover .legende, .item:focus-visible .legende { color: var(--noir); }

/* =========================================================
   ANIMATIONS (déclenchées au survol / focus)
   ========================================================= */

/* la tasse touille : rotation continue */
@keyframes touiller { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.item-tasse:hover .obj,
.item-tasse:focus-visible .obj {
  animation: touiller 2.6s linear infinite;
}

/* le coeur et le biscuit oscillent : petit va-et-vient */
@keyframes osciller {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(8deg); }
  60%  { transform: rotate(-8deg); }
  85%  { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}
.item-oscille:hover .obj,
.item-oscille:focus-visible .obj {
  animation: osciller 1.1s ease-in-out infinite;
}

/* Accessibilité : on coupe les animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .obj { animation: none !important; }
  .item:hover, .item:focus-visible { transform: none; }
}