/* V27 — menu, pagination et lisibilité. */
[hidden]{display:none!important}
header nav.bd-nav-open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;background:var(--ink);color:var(--text);padding:12px 20px;box-shadow:0 12px 24px #0003;max-height:calc(100dvh - 76px);overflow:auto;z-index:20;animation:bdMenuIn .18s ease-out}
header nav.bd-nav-open a{padding:12px 0}
@keyframes bdMenuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.bd-more-row{display:flex;justify-content:center;margin:24px 0 0}.bd-more-row .btn{cursor:pointer;white-space:normal;min-height:44px;text-align:center}.bd-photo-error{color:var(--muted);font-size:14px}.bd-drive-project{background-color:var(--ink)}
#testimonials .review-card{gap:10px;padding:22px;min-height:0}#testimonials .review-quote{font-size:30px;line-height:1}#testimonials .review-message{margin:0 0 6px;line-height:1.6;white-space:normal}#testimonials .review-author{margin-top:auto}.review-action{margin-top:16px}
.bd-project-image{object-fit:contain;max-height:65dvh}.bd-project-controls button{min-width:44px;min-height:44px}
@media(max-width:620px){#testimonials .review-card{padding:18px;gap:8px}#testimonials .review-message{font-size:15px;line-height:1.55}#testimonials .review-author{margin-top:8px}.bd-more-row .btn{max-width:100%;font-size:14px}.bd-project-image{max-height:53dvh}}
@media(prefers-reduced-motion:reduce){header nav.bd-nav-open{animation:none}}

.bd-product-image img.loading[src],#productImage.loading[src]{opacity:1!important}

/* V27.1 — Contraste et cohérence des actions du portfolio et des avis. */
#portfolio .bd-more-row > button.btn,
#testimonials .bd-more-row > button.btn,
#testimonials .review-action > #openReview.btn {
  --bd-action-color: #e1bd80;
  --bd-action-hover-text: #10161c;
  color: var(--bd-action-color);
  border: 1px solid var(--bd-action-color);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 28px;
  padding: 12px 24px;
  min-height: 44px;
  width: 260px;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
body.light-theme #portfolio .bd-more-row > button.btn,
body.light-theme #testimonials .bd-more-row > button.btn,
body.light-theme #testimonials .review-action > #openReview.btn {
  --bd-action-color: #755522;
  --bd-action-hover-text: #fff;
}
@media (hover: hover) {
  #portfolio .bd-more-row > button.btn:hover,
  #testimonials .bd-more-row > button.btn:hover,
  #testimonials .review-action > #openReview.btn:hover {
    background: var(--bd-action-color);
    color: var(--bd-action-hover-text);
  }
}
#portfolio .bd-more-row > button.btn:focus-visible,
#testimonials .bd-more-row > button.btn:focus-visible,
#testimonials .review-action > #openReview.btn:focus-visible {
  outline: 2px solid var(--bd-action-color);
  outline-offset: 4px;
}
#portfolio .bd-more-row > button.btn:active,
#testimonials .bd-more-row > button.btn:active,
#testimonials .review-action > #openReview.btn:active {
  background: var(--bd-action-color);
  color: var(--bd-action-hover-text);
}
@media (prefers-reduced-motion: reduce) {
  #portfolio .bd-more-row > button.btn,
#testimonials .bd-more-row > button.btn,
  #testimonials .review-action > #openReview.btn { transition: none; }
}

/* V27.1 — palette claire : contrastes des textes, champs et actions. */
body.light-theme:not(.bd-shop-light){--ink:#f8f6f1;--blue:#eee9df;--gold:#755522;--text:#17212a;--muted:#505b64;color-scheme:light}
body.light-theme:not(.bd-shop-light) .dark{background:var(--ink)}
body.light-theme:not(.bd-shop-light) .blue{background:var(--blue)}
body.light-theme:not(.bd-shop-light) .hero{--gold:#e1bd80;color:#fff}
body.light-theme:not(.bd-shop-light) .project{--gold:#e1bd80}
body.light-theme:not(.bd-shop-light) .gold{background:#755522;color:#fff;border-color:#755522}
body.light-theme:not(.bd-shop-light) .hero .gold{background:#e1bd80;color:#17212a;border-color:#e1bd80}
body.light-theme:not(.bd-shop-light) .outline{color:var(--text);border-color:#827666}
body.light-theme:not(.bd-shop-light) .hero .outline{color:#fff;border-color:#fff}
body.light-theme:not(.bd-shop-light) #projectForm .gold,body.light-theme:not(.bd-shop-light) #reviewDialog .gold{background:#755522;color:#fff;border-color:#755522}
body.light-theme:not(.bd-shop-light) #projectForm select,body.light-theme:not(.bd-shop-light) #projectForm textarea,body.light-theme:not(.bd-shop-light) #reviewDialog select,body.light-theme:not(.bd-shop-light) #reviewDialog textarea,body.light-theme:not(.bd-shop-light) #reviewDialog input:not([type=radio]):not([type=checkbox]),body.light-theme:not(.bd-shop-light) .bd-portfolio-filter{background-color:#fffdf9;color:#17212a;border-color:#8b8173}
body.light-theme:not(.bd-shop-light) #projectForm textarea::placeholder,body.light-theme:not(.bd-shop-light) #reviewDialog input::placeholder,body.light-theme:not(.bd-shop-light) #reviewDialog textarea::placeholder{color:#606970;opacity:1}
body.light-theme:not(.bd-shop-light) .review-card{border-color:#c5b9a5!important}
body.light-theme:not(.bd-shop-light) .num{color:#17212a70}
body.light-theme:not(.bd-shop-light) .offers li:before{color:#755522}
body.light-theme:not(.bd-shop-light) .offers .most{background:#755522;color:#fff}
body.light-theme:not(.bd-shop-light) .bd-project-dialog{background:#f8f6f1;color:#17212a;border-color:#9e8966}
body.light-theme:not(.bd-shop-light) .bd-project-caption{color:#755522}
/* Keep all three actions equal in size; preserve separate focus indicator. */
#portfolio .bd-more-row > button.btn,#testimonials .bd-more-row > button.btn,#testimonials .review-action > #openReview.btn{color:var(--bd-action-color);border-color:var(--bd-action-color)}
body.light-theme:not(.bd-shop-light) #portfolio .bd-more-row > button.btn,body.light-theme:not(.bd-shop-light) #testimonials .bd-more-row > button.btn,body.light-theme:not(.bd-shop-light) #testimonials .review-action > #openReview.btn{color:#755522;border-color:#755522}
@media(hover:hover){body.light-theme:not(.bd-shop-light) #portfolio .bd-more-row > button.btn:hover,body.light-theme:not(.bd-shop-light) #testimonials .bd-more-row > button.btn:hover,body.light-theme:not(.bd-shop-light) #testimonials .review-action > #openReview.btn:hover{background:#755522;color:#fff}#portfolio .bd-more-row > button.btn:hover,#testimonials .bd-more-row > button.btn:hover,#testimonials .review-action > #openReview.btn:hover{background:var(--bd-action-color);color:var(--bd-action-hover-text)}}
body.light-theme:not(.bd-shop-light) #portfolio .bd-more-row > button.btn:active,body.light-theme:not(.bd-shop-light) #testimonials .bd-more-row > button.btn:active,body.light-theme:not(.bd-shop-light) #testimonials .review-action > #openReview.btn:active{background:#755522;color:#fff}
