/* Mijoka — page vitrine (ordinateur).
   Une nappe de lin clair, la semaine servie sur la table, une bande vichy,
   des écrans posés avec leur ombre et une carte de menu. Une seule animation :
   les fiches de la semaine qui se posent au chargement. */

.vitrine {
  --lin: #FAF5EB;
  --papier: #FFFDF8;
  --brun: #5C2E12;
  --brun-doux: #7A5A45;
  --orange: #E8601C;
  --olive: #5A6B2A;
  --moutarde: #F5A623;
  --ombre-posee: 0 1px 0 rgba(92, 46, 18, .06), 0 14px 32px -12px rgba(92, 46, 18, .28);
  background-color: var(--lin);
  /* trame de lin : fils horizontaux et verticaux très légers */
  background-image:
    repeating-linear-gradient(0deg, rgba(92, 46, 18, .025) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(92, 46, 18, .02) 0 1px, transparent 1px 5px);
  color: var(--brun);
}
.vitrine .page { max-width: 1160px; padding: 0 var(--esp-5); }
.vitrine .pied { display: none; }
.vitrine h2, .vitrine h3 { font-family: "Fredoka", "Nunito", sans-serif; color: var(--brun); text-decoration: none; }
.vitrine h2 { font-size: 2.1rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--esp-3); }
.vitrine h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 var(--esp-1); }
.vitrine p { color: var(--brun-doux); line-height: 1.6; }

/* ---------- En-tête ---------- */
.v-entete { position: relative; text-align: center; padding: var(--esp-7) 0 var(--esp-5); }
.v-logo { width: 460px; max-width: 80%; height: auto; }
.v-titre {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--brun);
  max-width: 20ch;
  margin: var(--esp-5) auto var(--esp-4);
}
.v-chapeau { font-size: 1.25rem; max-width: 52ch; margin: 0 auto; }
.vitrine .cle-cachee { top: var(--esp-4); right: 0; color: var(--brun-doux); }

/* ---------- La semaine servie sur la table ---------- */
.v-table { padding: var(--esp-5) 0 var(--esp-7); }
.v-semaine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--esp-3); }
.v-fiche {
  position: relative;
  display: flex; flex-direction: column; gap: var(--esp-2);
  min-height: 168px;
  padding: var(--esp-4) var(--esp-3) var(--esp-3);
  background: var(--papier);
  border-radius: 6px;
  box-shadow: var(--ombre-posee);
  transform: rotate(var(--penche, 0deg));
  animation: v-poser .6s cubic-bezier(.2, .8, .25, 1) both;
  animation-delay: calc(var(--rang, 0) * 90ms + 150ms);
}
.v-fiche:nth-child(1) { --rang: 0; --penche: -1.6deg; }
.v-fiche:nth-child(2) { --rang: 1; --penche: 1.1deg; }
.v-fiche:nth-child(3) { --rang: 2; --penche: -.6deg; }
.v-fiche:nth-child(4) { --rang: 3; --penche: 1.5deg; }
.v-fiche:nth-child(5) { --rang: 4; --penche: -1.2deg; }
.v-fiche:nth-child(6) { --rang: 5; --penche: .7deg; }
.v-fiche:nth-child(7) { --rang: 6; --penche: -.9deg; }
/* trou de classeur en haut de chaque fiche */
.v-fiche::before { content: ""; position: absolute; top: 8px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--lin); box-shadow: inset 0 1px 2px rgba(92, 46, 18, .25); }
.v-jour { font-family: "Caveat", cursive; font-size: 1.55rem; font-weight: 700; color: var(--orange); line-height: 1; margin-top: var(--esp-2); }
.v-plat { font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--brun); }
.v-score {
  margin-top: auto; align-self: flex-start;
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .9rem; color: #fff;
}
.v-score-a { background: var(--olive); }
.v-score-b { background: #8C9A3A; }
@keyframes v-poser {
  from { opacity: 0; transform: translateY(-28px) rotate(calc(var(--penche) * -3)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--penche)); }
}

/* ---------- Bande vichy ---------- */
.v-vichy {
  height: 28px;
  margin: 0 calc(-1 * var(--esp-5));
  background-color: #FFFDF8;
  background-image:
    linear-gradient(90deg, rgba(90, 107, 42, .38) 50%, transparent 50%),
    linear-gradient(0deg, rgba(90, 107, 42, .38) 50%, transparent 50%);
  background-size: 28px 28px;
  opacity: .8;
}

/* ---------- Sections ---------- */
.v-section { padding: var(--esp-7) 0; }
.v-section + .v-section { padding-top: 0; }

/* Écrans posés sur la table */
.v-ecrans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--esp-6); align-items: center; }
.v-texte p { font-size: 1.1rem; max-width: 34ch; }
.v-appareils { position: relative; padding: var(--esp-5) 0 var(--esp-7); }
.v-appareils figure { margin: 0; }
.v-tablette {
  width: 82%;
  padding: 14px;
  background: #2E2420;
  border-radius: 26px;
  box-shadow: 0 30px 60px -24px rgba(60, 30, 10, .55), 0 2px 0 rgba(255, 255, 255, .08) inset;
  transform: rotate(-1.5deg);
}
.v-tablette img, .v-telephone img { display: block; width: 100%; height: auto; border-radius: 14px; }
.v-telephone {
  position: absolute;
  width: 23%;
  padding: 8px;
  background: #2E2420;
  border-radius: 28px;
  box-shadow: 0 26px 50px -20px rgba(60, 30, 10, .6);
}
.v-telephone img { border-radius: 21px; }
.v-telephone-1 { right: 10%; top: 18%; transform: rotate(3deg); }
.v-telephone-2 { right: 0; top: 34%; transform: rotate(-4deg); }
.v-note {
  position: absolute;
  font-family: "Caveat", cursive; font-size: 1.5rem; font-weight: 700; color: var(--orange);
  white-space: nowrap;
}
.v-note::before { content: "↖"; display: inline-block; margin-right: 6px; font-family: "Nunito", sans-serif; font-size: 1.2rem; }
.v-note-tablette { left: 6%; bottom: -46px; transform: rotate(-2deg); }
.v-note-tablette::before { content: "↗"; }

/* Carte de menu */
.v-carte-menu {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--esp-6) var(--esp-6) var(--esp-5);
  background: var(--papier);
  border-radius: 4px;
  box-shadow: var(--ombre-posee);
  outline: 1px solid rgba(92, 46, 18, .12);
  outline-offset: -12px;
}
.v-carte-menu > h2 { text-align: center; font-family: "Caveat", cursive; font-size: 3rem; font-weight: 700; margin-bottom: var(--esp-5); }
.v-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-5) var(--esp-6); }
.v-menu li { display: grid; grid-template-columns: 40px 1fr; gap: var(--esp-3); align-items: start; }
.v-menu svg { width: 32px; height: 32px; color: var(--orange); margin-top: 2px; }
.v-menu p { margin: 0; font-size: .98rem; }
.v-menu li:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }

/* La semaine en trois temps : vraie séquence, donc numérotée */
.v-temps { list-style: none; counter-reset: temps; margin: var(--esp-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-6); }
.v-temps li { counter-increment: temps; position: relative; padding-top: 68px; }
.v-temps li::before {
  content: counter(temps);
  position: absolute; top: 0; left: 0;
  font-family: "Caveat", cursive; font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--moutarde);
}
.v-temps p { margin: 0; }

/* Chez vous */
.v-maison { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--esp-6); border-top: 1px dashed rgba(92, 46, 18, .25); padding-top: var(--esp-6); }
.v-section.v-maison { padding-top: var(--esp-6); }
.v-maison p { margin: 0; }

/* Pied */
.v-pied { display: flex; align-items: center; justify-content: center; gap: var(--esp-3); padding: var(--esp-5) 0 var(--esp-6); }
.v-pied img { width: 72px; height: auto; opacity: .85; }
.v-pied p { margin: 0; font-size: .9rem; }

/* ---------- Écrans plus étroits (fenêtre réduite) ---------- */
@media (max-width: 980px) {
  .v-semaine { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v-ecrans { grid-template-columns: 1fr; }
  .v-texte p { max-width: 60ch; }
  .v-menu { grid-template-columns: 1fr; }
  .v-menu li:last-child:nth-child(odd) { max-width: none; justify-self: stretch; }
  .v-temps, .v-maison { grid-template-columns: 1fr; gap: var(--esp-5); }
}
@media (max-width: 600px) {
  .v-semaine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-telephone { display: none; }
  .v-tablette { width: 100%; }
  .v-note { display: none; }
  .v-carte-menu { padding: var(--esp-5) var(--esp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .v-fiche { animation: none; }
}
