/* Route /#dossier, rubrique Livre d’or · dist/styles/livre-or-famille.css */
.gb-heading { margin-bottom:20px; }
.gb-write,.gb-controls button,.gb-form-actions button { touch-action:manipulation; }
.gb-heading .gb-write {
  background:#fffdf8; color:#132778; border:1px solid #9a8654; border-radius:3px;
  padding:10px 19px; min-height:42px; font-size:14px; font-weight:600;
}
.gb-desk {
  position:relative; isolation:isolate; overflow:hidden; border:1px solid #d9d1bf; border-radius:7px;
  padding:clamp(19px,3.5vw,40px) clamp(10px,3.2vw,38px) 19px; text-align:center;
  background:radial-gradient(ellipse at 43% 16%,#fffdf8 5%,#f3eddf 57%,#e6ddc6 100%);
}
.gb-stage { position:relative; width:min(100%,764px); margin:auto; perspective:1450px; }
.gb-cover {
  display:block; box-sizing:border-box; margin:0 auto; width:min(46%,306px); height:332px; padding:0;
  background:#e7d7aa; color:#f6da91; border:1px solid #4f481f; border-radius:4px 12px 10px 5px;
  border-bottom:5px solid #b8a67a; border-right:5px solid #d7c9a3;
  box-shadow:2px 3px 0 #534f40,5px 7px 0 -4px #b8aa88,9px 14px 18px -8px #493c2580;
  transition:transform .2s ease,box-shadow .2s ease;
}
@media(hover:hover) { .gb-cover:hover { transform:translateY(-3px); box-shadow:2px 3px 0 #534f40,10px 18px 18px -8px #493c257a; } }
.gb-cover-face {
  position:relative; display:flex; height:100%; width:100%; flex-direction:column; justify-content:center; align-items:center;
  padding:22px 24px 22px 33px; color:#f8dea0; border-radius:2px 6px 5px 2px;
  background:
    linear-gradient(90deg,#061641 0,#112975 3%,#283a82 5%,#091a5a 7%,transparent 9%),
    repeating-linear-gradient(38deg,#ffffff05 0px,#ffffff05 1px,transparent 1px,transparent 3px),
    linear-gradient(128deg,#0f2b83 0%,#172f83 40%,#091e65 75%,#06194d);
  text-shadow:0 1px 1px #081347; overflow:hidden;
}
.gb-cover-face::before,.gb-cover-face::after {
  content:""; position:absolute; pointer-events:none; top:15px; right:13px; bottom:15px; left:26px;
  border:1px solid #c1a25d; border-radius:1px 4px 4px 1px;
}
.gb-cover-face::after { top:19px; right:17px; bottom:19px; left:30px; border-color:#c1a25d6b; }
.gb-mark {
  height:43px; width:43px; border:1px solid #caaa65; border-radius:50%; margin:0 0 13px;
  font:400 34px/1.5 var(--script,Georgia,serif);
}
.gb-cover-name { font:400 clamp(43px,5vw,69px)/1.05 var(--script,Georgia,serif); }
.gb-cover-rule { display:flex; align-items:center; gap:6px; margin:10px 0 13px; font:12px Georgia,serif; }
.gb-cover-rule::before,.gb-cover-rule::after { content:""; width:30px; height:1px; background:#c3a35d; }
.gb-cover-house { font:400 12px/1.3 var(--sans,Arial,sans-serif); letter-spacing:.18em; text-transform:uppercase; }
.gb-cover-action { position:absolute; bottom:34px; left:29px; right:17px; color:#fbebba; font:600 13px/1.4 var(--sans,Arial,sans-serif); text-decoration:underline; text-underline-offset:4px; }
.gb-caption { margin:18px 0 0!important; color:#564e3e; font:14px/1.55 var(--sans,Arial,sans-serif); }
.gb-spread {
  position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch;
  border:3px solid #1b326f; border-bottom:6px solid #182c58; border-radius:6px 8px 8px 6px;
  background:#e7deca; box-shadow:0 2px #cdbb91,0 4px #faf3e0,0 5px #bdae8f,0 15px 23px -10px #483b2975;
  perspective:1500px;
}
.gb-page {
  position:relative; display:flex; flex-direction:column; min-width:0; min-height:320px; margin:0;
  padding:clamp(22px,3.8vw,49px) clamp(19px,3.6vw,44px) 22px; text-align:left;
  color:#2d302e; background:linear-gradient(90deg,#efe6cd,#fffcf2 5%,#fffdf5 75%,#f9f2e0 95%,#d9cdb0);
}
.gb-page.gb-right { background:linear-gradient(90deg,#d4c5a7,#f9f2e0 5%,#fffdf5 20%,#fffaf0 96%,#eee4cd); }
.gb-page::after { content:""; height:1px; width:27px; background:#ae9154; margin:13px auto 0; }
.gb-page.gb-empty::after { display:none; }
.gb-page-text { margin:auto 0!important; padding:12px 0; font:400 clamp(27px,2.45vw,34px)/1.38 var(--script,Georgia,serif); color:#332c29; white-space:pre-line; overflow-wrap:anywhere; }
.gb-page-text.gb-long { font-size:23px; line-height:1.4; }
.gb-signature { display:block; margin:1px 0 17px; overflow-wrap:anywhere; color:#64532d; font:400 23px/1.2 var(--script,Georgia,serif); }
.gb-folio { display:block; margin:auto 0 0; text-align:center; font:12px/1.2 var(--sans,Arial,sans-serif); color:#766849; }
.gb-title { justify-content:center; align-items:center; text-align:center; }
.gb-title .gb-page-title { margin:auto 0 10px; font:400 clamp(39px,4.5vw,65px)/1.05 var(--script,Georgia,serif); color:#795b25; }
.gb-title .gb-inscription { max-width:16em; margin:0 0 auto; color:#514c42; font:400 25px/1.4 var(--script,Georgia,serif); }
.gb-title .gb-folio { margin-top:18px; }
.gb-empty { align-items:center; justify-content:center; font:italic 17px/1.5 var(--serif,Georgia,serif); color:#75684c; text-align:center; }
.gb-controls { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:9px 15px; margin-top:21px; }
.gb-controls button,.gb-form-actions #gb-cancel { min-height:44px; padding:8px 13px; background:#fffcf6; border:1px solid #b8a577; color:#1e3269; border-radius:3px; font-size:14px; font-weight:600; }
.gb-controls button span { font-size:20px; line-height:0; vertical-align:-1px; }
.gb-controls button:disabled { opacity:.48; cursor:default; }
.gb-controls #gb-close { background:transparent; border-color:transparent; text-decoration:underline; text-underline-offset:3px; color:#514d43; }
.gb-location { margin:7px 0 0!important; min-height:1.4em; font-size:13px; line-height:1.4; color:#514d43; }
.gb-location:empty { display:none; }
.gb-leaf { position:absolute; z-index:2; top:0; bottom:0; width:50%; pointer-events:none; transform-style:preserve-3d; }
.gb-leaf.gb-forward { left:50%; transform-origin:left center; animation:gb-turn-forward .58s ease-in-out both; }
.gb-leaf.gb-backward { left:0; transform-origin:right center; animation:gb-turn-backward .58s ease-in-out both; }
.gb-leaf.gb-opening { animation-name:gb-turn-cover; }
.gb-leaf-face { display:grid; position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; overflow:hidden; }
.gb-leaf-face .gb-page { height:100%; min-height:0; }
.gb-leaf-front { transform:rotateY(0); }
.gb-leaf-back { transform:rotateY(180deg); }
@keyframes gb-turn-forward { from{transform:rotateY(0deg)} to{transform:rotateY(-180deg)} }
@keyframes gb-turn-backward { from{transform:rotateY(0deg)} to{transform:rotateY(180deg)} }
@keyframes gb-turn-cover { from{transform:translateX(-38%) rotateY(0deg)} to{transform:translateX(0) rotateY(-180deg)} }
.gb-form { margin:20px 0 0; padding:clamp(18px,3vw,30px); background:#fffdf8; border:1px solid #d5cbb7; border-radius:5px; }
.gb-form h3 { margin:0 0 7px; font:400 30px/1.2 var(--serif,Georgia,serif); }
.gb-form p { margin:0 0 17px; font-size:14px; line-height:1.6; color:#4b5362; }
.gb-field { margin:12px 0; }
.gb-field label { display:block; margin-bottom:5px; font-size:15px; font-weight:600; color:#273146; }
.gb-field label span { font-weight:400; color:#656055; }
.gb-field input,.gb-field textarea { width:100%; border:1px solid #aaa394; border-radius:3px; background:white; color:#253045; font:400 16px/1.5 var(--sans,Arial,sans-serif); padding:9px 12px; }
.gb-field textarea { resize:vertical; }
.gb-author-field { max-width:420px; }
.gb-form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:19px; }
@media(max-width:680px) {
  .gb-heading { align-items:flex-start; flex-direction:row; flex-wrap:wrap; }
  .gb-heading h2 { font-size:33px; }
  .gb-heading .gb-write { padding:7px 11px; }
  .gb-stage { max-width:425px; }
  .gb-cover { width:min(85%,258px); height:293px; }
  .gb-spread { grid-template-columns:minmax(0,1fr); }
  .gb-page { min-height:292px; padding:27px clamp(20px,7vw,42px) 20px; }
  .gb-leaf { width:100%; }
  .gb-leaf.gb-forward,.gb-leaf.gb-backward { left:0; animation-duration:.38s; }
  .gb-leaf.gb-forward { animation-name:gb-turn-forward; }
  .gb-leaf.gb-backward { animation-name:gb-turn-backward; }
  .gb-controls { gap:2px 3px; }
  .gb-controls button { padding:7px 8px; font-size:13px; }
  .gb-page-text { font-size:28px; }
  .gb-page-text.gb-long { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) {
  .gb-cover { transition:none; }
  .gb-leaf { display:none; animation:none!important; }
}
