/* Villa Agati review engine, aligne sur la charte du site principal :
   Playfair Display + Nunito, navy #1a2a3a, or #c8a45a, creme #f8f4ef. */

:root {
  --navy: #1a2a3a;
  --navy-deep: #0f2535;
  --gold: #c8a45a;
  --gold-light: #e8c87a;
  --gold-dark: #b8923f;
  --cream: #f8f4ef;
  --muted: #5a6a7a;
  --line: #e6ded2;
  --ok: #2e7d5b;
  --warn: #b4463c;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 22px 48px; flex: 1; }

/* en-tete */
.head { text-align: center; padding: 38px 0 26px; }
.head__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px; font-weight: 600; color: var(--navy);
  letter-spacing: .01em; line-height: 1.1;
}
.head__loc {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-top: 8px;
}
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0; }
.orn i { display: block; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.orn b { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* carte */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 22px; box-shadow: 0 2px 20px rgba(26, 42, 58, .06);
}
.card + .card { margin-top: 18px; }

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px; font-weight: 600; line-height: 1.25; text-align: center;
}
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 600; margin-bottom: 4px;
}
.lead { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }

/* etoiles */
.stars { display: flex; justify-content: center; gap: 6px; margin: 24px 0 6px; direction: rtl; }
.stars input { display: none; }
.stars label {
  font-size: 40px; line-height: 1; color: #dcd5c9; cursor: pointer;
  transition: color .12s, transform .12s;
}
.stars label:hover, .stars label:hover ~ label,
.stars input:checked ~ label { color: var(--gold); }
.stars label:active { transform: scale(.9); }
.stars__hint { text-align: center; font-size: 13px; color: var(--muted); min-height: 20px; }

/* champs */
.field { margin-top: 22px; }
label.lbl {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 9px;
}
input[type=text], textarea, select {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--navy);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; outline: none; transition: border-color .15s;
}
input[type=text]:focus, textarea:focus, select:focus { border-color: var(--gold); }
textarea { min-height: 96px; resize: vertical; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* boissons */
.drinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drinks input { display: none; }
.drinks label {
  display: block; text-align: center; font-size: 14px; font-weight: 600;
  padding: 11px 6px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream); cursor: pointer; transition: all .12s;
}
.drinks input:checked + label {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* boutons */
.btn {
  display: block; width: 100%; text-align: center; font-family: inherit;
  font-size: 15px; font-weight: 800; letter-spacing: .04em; padding: 16px;
  border: none; border-radius: 10px; cursor: pointer; margin-top: 26px;
  text-decoration: none; transition: transform .1s, box-shadow .15s;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep); box-shadow: 0 4px 14px rgba(200, 164, 90, .3);
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  font-weight: 700; box-shadow: none;
}
.btn:active { transform: translateY(1px); }

/* code */
.code {
  text-align: center; background: var(--navy); color: #fff;
  border-radius: 14px; padding: 26px 18px; margin-top: 22px;
}
.code__label {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 800;
}
.code__value {
  font-family: 'Playfair Display', Georgia, serif; font-size: 46px;
  font-weight: 700; letter-spacing: .07em; margin: 8px 0 4px; line-height: 1;
}
.code__drink { font-size: 15px; color: #d9e0e8; }
.code__ttl { font-size: 12.5px; color: var(--gold-light); margin-top: 12px; }

.sep { display: flex; align-items: center; gap: 14px; margin: 30px 0 4px; color: var(--muted); }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sep span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }

.foot {
  text-align: center; font-size: 12px; color: var(--muted);
  padding: 8px 22px 30px; max-width: 520px; margin: 0 auto;
}
.foot a { color: var(--gold-dark); }

/* staff */
.staff { max-width: 760px; }
.staff table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.staff th {
  text-align: left; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.staff td { padding: 9px 6px; border-bottom: 1px solid #f0ece5; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px;
  border-radius: 20px; letter-spacing: .04em;
}
.tag--ok { background: #e3f2ea; color: var(--ok); }
.tag--wait { background: #fdf3e0; color: var(--gold-dark); }
.tag--dead { background: #f2f2f2; color: #999; }
.tag--low { background: #fbe9e7; color: var(--warn); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.kpi__n { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; }
.kpi__l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 7px; font-weight: 700; }

.msg { padding: 13px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; margin-top: 14px; }
.msg--ok { background: #e3f2ea; color: var(--ok); }
.msg--err { background: #fbe9e7; color: var(--warn); }

@media (max-width: 380px) {
  .drinks { grid-template-columns: 1fr; }
  .code__value { font-size: 40px; }
}

/* mention sous le bouton principal */
.btn__sub {
  text-align: center; font-size: 13px; color: var(--gold-dark);
  font-weight: 700; margin-top: 9px; letter-spacing: .01em;
}

/* avis recopiable */
.quote {
  background: var(--cream); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 15px 16px; margin-top: 24px;
  font-size: 15px; color: var(--navy); font-style: italic; line-height: 1.55;
}

/* confirmation de copie, revelee au clic */
.copied {
  font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--ok); margin-top: 9px; text-align: right;
  opacity: 0; transition: opacity .2s;
}
.copied::before { content: "\2713\00a0"; }
.copied--on { opacity: 1; }
