/* ══════════════════════════════════════
   LIVRE D'OR — page dédiée
   Jetons repris de common.css pour rester cohérent avec le site.
══════════════════════════════════════ */

/* ── EN-TÊTE ── */
.lor-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 100% at 12% 0%, rgba(255,180,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 100% at 88% 100%, rgba(204,0,0,.14) 0%, transparent 60%),
    rgba(10,10,20,.6);
  border-bottom: 1px solid var(--border);
  padding: 38px 0 32px;
}
.lor-hero-inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.lor-hero-badge {
  width: 76px; height: 76px; border-radius: 24px; flex-shrink: 0;
  background: linear-gradient(135deg, #a06800, #e6a000, #ffd700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; color: #2a1a00;
  box-shadow: 0 14px 40px rgba(230,160,0,.35), 0 0 0 1px rgba(255,255,255,.1);
}
.lor-hero-text { flex: 1; min-width: 0; }
.lor-hero-text h1 {
  font-size: 2.1rem; font-weight: 900; letter-spacing: -.5px; line-height: 1.1;
  background: linear-gradient(135deg, #fff 35%, rgba(255,215,0,.85));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lor-hero-text p { color: var(--t2); font-size: .9rem; margin-top: 8px; }
.lor-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.lhs {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 12px 20px; text-align: center; min-width: 100px;
}
.lhs-val { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.lhs-val.gold { color: #ffd700; }
.lhs-lbl {
  font-size: .58rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--t3); margin-top: 6px; font-weight: 700;
}

/* ── DISPOSITION ── */
.lor-layout {
  display: grid; grid-template-columns: 380px 1fr; gap: 24px;
  align-items: start; padding: 28px 0 50px;
}

/* ── FORMULAIRE (colonne collante) ── */
.lor-form-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 24px; backdrop-filter: blur(16px);
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.lor-form-title {
  font-size: 1rem; font-weight: 900; margin-bottom: 4px;
  display: flex; align-items: center; gap: 9px;
}
.lor-form-title i { color: #ffd700; }
.lor-form-sub { font-size: .76rem; color: var(--t3); margin-bottom: 18px; line-height: 1.5; }
.lorf { display: flex; flex-direction: column; gap: 12px; }
.lorf label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: var(--t3); margin-bottom: -6px;
}
.lorf input, .lorf textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 12px 15px; color: #fff;
  font-size: .86rem; font-family: inherit; outline: none;
  transition: .2s; width: 100%;
}
.lorf input:focus, .lorf textarea:focus { border-color: rgba(255,215,0,.4); background: rgba(255,215,0,.04); }
.lorf textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.lor-count { font-size: .68rem; color: var(--t3); text-align: right; margin-top: -8px; }

/* ── NOTE EN ÉTOILES ── */
.lor-stars { display: flex; gap: 7px; align-items: center; }
.lor-star {
  background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 1.5rem; line-height: 1; color: rgba(255,255,255,.18);
  transition: transform .15s, color .15s; font-family: inherit;
}
.lor-star:hover { transform: scale(1.15); }
.lor-star.on { color: #ffd700; text-shadow: 0 0 14px rgba(255,215,0,.5); }
.lor-stars-lbl { font-size: .74rem; color: var(--t3); margin-left: 6px; }

.lor-submit {
  padding: 14px; background: linear-gradient(135deg, #a06800, #e6a000);
  border: none; border-radius: 12px; color: #201400;
  font-size: .84rem; font-weight: 900; cursor: pointer; font-family: inherit;
  letter-spacing: .4px; transition: .22s;
  box-shadow: 0 4px 20px rgba(230,160,0,.3);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.lor-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(230,160,0,.5); }
.lor-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.lor-fb { font-size: .78rem; padding: 11px 14px; border-radius: 10px; display: none; line-height: 1.5; }
.lor-fb.ok   { background: rgba(0,255,136,.08); color: var(--g);   border: 1px solid rgba(0,255,136,.2); display: block; }
.lor-fb.err  { background: rgba(255,50,50,.08); color: #ff6666;    border: 1px solid rgba(255,50,50,.2); display: block; }
.lor-fb.info { background: rgba(255,215,0,.07); color: #ffd700;    border: 1px solid rgba(255,215,0,.22); display: block; }

/* ── MESSAGES ── */
.lor-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lore {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 20px; position: relative;
  transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.lore:hover { transform: translateY(-3px); border-color: rgba(255,215,0,.25); }
/* Guillemet décoratif en filigrane */
.lore::before {
  content: '\201C'; position: absolute; top: 2px; right: 16px;
  font-size: 4.4rem; line-height: 1; color: rgba(255,215,0,.07);
  font-family: Georgia, serif; pointer-events: none;
}
.lore-head { display: flex; align-items: center; gap: 12px; }
.lore-av {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem; color: #201400;
  background: linear-gradient(135deg, #e6a000, #ffd700);
}
.lore-meta { min-width: 0; flex: 1; }
.lore-nick {
  font-weight: 800; font-size: .88rem; color: var(--t1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lore-date { font-size: .68rem; color: var(--t3); margin-top: 2px; }
.lore-stars { font-size: .78rem; color: #ffd700; letter-spacing: 1px; }
.lore-msg {
  font-size: .87rem; color: var(--t2); line-height: 1.65;
  word-wrap: break-word; overflow-wrap: anywhere; font-style: italic;
}
.lor-empty, .lor-loading {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--t3);
  display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: .86rem;
}
.lor-empty i, .lor-loading i { font-size: 2.6rem; color: rgba(255,215,0,.25); }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  /* Le formulaire repasse au-dessus des messages et cesse d'être collant
     (une colonne collante n'a plus de sens quand tout est empilé). */
  .lor-layout { grid-template-columns: 1fr; padding: 20px 0 36px; }
  .lor-form-card { position: static; }
}
@media (max-width: 600px) {
  .lor-hero { padding: 26px 0 22px; }
  .lor-hero-inner { gap: 16px; }
  .lor-hero-badge { width: 58px; height: 58px; border-radius: 18px; font-size: 1.4rem; }
  .lor-hero-text h1 { font-size: 1.5rem; }
  .lor-hero-stats { width: 100%; }
  .lhs { flex: 1; min-width: 0; padding: 10px 12px; }
  .lor-form-card { padding: 18px; }
  .lor-entries { grid-template-columns: 1fr; }
}
